You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observation:
At every @prefix, CoNLLRDFUpdater seems to start a new sentence. (Also see example below.)
Solution A (easier?):
Maintain a stack of previously declared prefixes and inset them into the current code block. (Note that this will skrew up line numbers.)
Solution B (better):
check that the current code block contains at least one triple before starting a new sentence.
I assume that solution B is currently implemented, but that the triple check is just checking whether the block contains a triple separator. However, the @prefix notation requires a dot at the end of the prefix, too.
Example
Input:
# newdoc id = txt/en/bibl.en_web.ACT.txt
# newpar
# sent_id = 1
# text = The first book I wrote, Theophilus, concerned all that Jesus began both to do and to teach, until the day in which he was received up, after he had given commandment through the Holy Spirit to the apostles whom he had chosen.
@prefix : <file:///home/christian/Desktop/github/AURIS/#> .
@prefix conll: <http://ufal.mff.cuni.cz/conll2009-st/task-description.html#> .
@prefix nif: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix powla: <http://purl.org/powla/powla.owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix terms: <http://purl.org/acoli/open-ie/> .
@prefix x: <http://purl.org/acoli/conll-rdf/xml#> .
:s1_22 rdf:type nif:Word ;
nif:nextWord :s1_23 ;
conll:EDGE "det" ;
conll:FEATS "Definite=Def|PronType=Art" ;
conll:FORM "the" ;
conll:HEAD :s1_23 ;
conll:ID "22" ;
conll:LEMMA "the" ;
conll:UPOS "DET" ;
conll:XPOS "DT" .
Output & Stderr:
# newdoc id = txt/en/bibl.en_web.ACT.txt
# newpar
# sent_id = 1
# text = The first book I wrote, Theophilus, concerned all that Jesus began both to do and to teach, until the day in which he was received up, after he had given commandment through the Holy Spirit to the apostles whom he had chosen.
@prefix : <file:///home/christian/Desktop/github/AURIS/#> .
@prefix conll: <http://ufal.mff.cuni.cz/conll2009-st/task-description.html#> .
@prefix nif: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix powla: <http://purl.org/powla/powla.owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : <file:///home/christian/Desktop/github/AURIS/#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix terms: <http://purl.org/acoli/open-ie/> .
15:01:33.941 [Thread-0] ERROR org.apache.jena.riot - [line: 3, col: 1 ] Undefined prefix:
15:01:33.950 [Thread-0] ERROR org.acoli.conll.rdf.CoNLLRDFUpdater - Exception while reading: @prefix x: <http://purl.org/acoli/conll-rdf/xml#> .
:s1_22 rdf:type nif:Word ;
nif:nextWord :s1_23 ;
conll:EDGE "det" ;
conll:FEATS "Definite=Def|PronType=Art" ;
conll:FORM "the" ;
conll:HEAD :s1_23 ;
conll:ID "22" ;
conll:LEMMA "the" ;
conll:UPOS "DET" ;
conll:XPOS "DT" .
The text was updated successfully, but these errors were encountered:
Observation:
At every
@prefix
, CoNLLRDFUpdater seems to start a new sentence. (Also see example below.)Solution A (easier?):
Maintain a stack of previously declared prefixes and inset them into the current code block. (Note that this will skrew up line numbers.)
Solution B (better):
check that the current code block contains at least one triple before starting a new sentence.
I assume that solution B is currently implemented, but that the triple check is just checking whether the block contains a triple separator. However, the
@prefix
notation requires a dot at the end of the prefix, too.Example
Input:
Output & Stderr:
The text was updated successfully, but these errors were encountered: