freme-project / e-Internationalization

Apache License 2.0
0 stars 0 forks source link

[test] invalid NIF in the examples #23

Closed m1ci closed 9 years ago

m1ci commented 9 years ago

In http://api-dev.freme-project.eu/doc/knowledge-base/eInternationalization.html the last NIF example (related to roundtripping) is invalid

The NIF is:

@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix nif:   <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

<http://freme-project.eu/#char=0,31>
        a               nif:RFC5147String , nif:Context , nif:String ;
        nif:beginIndex  "0"^^xsd:nonNegativeInteger ;
        nif:endIndex    "31"^^xsd:nonNegativeInteger ;
        nif:isString    "Roundtripping Welcome to Dublin"@en .

<http://freme-project.eu/#char=14,31>
        a                     nif:Phrase , nif:RFC5147String , nif:String ;
        nif:ReferenceContext  "http://freme-project.eu/#char=0,31" ;
        nif:anchorOf          "Welcome to Dublin"@en ;
        nif:beginIndex        "14"^^xsd:nonNegativeInteger ;
        nif:endIndex          "31"^^xsd:nonNegativeInteger ;
        dc:identifier         "2" .

<http://freme-project.eu/#char=0,13>
        a                     nif:Phrase , nif:RFC5147String , nif:String ;
        nif:ReferenceContext  "http://freme-project.eu/#char=0,31" ;
        nif:anchorOf          "Roundtripping"@en ;
        nif:beginIndex        "0"^^xsd:nonNegativeInteger ;
        nif:endIndex          "13"^^xsd:nonNegativeInteger ;
        dc:identifier         "1" .

<http://freme-project.eu/#char=25,31>
        a                     nif:Phrase , nif:RFC5147String , nif:String ;
        nif:ReferenceContext  "http://freme-project.eu/#char=0,31" ;
        nif:anchorOf          "Dublin"@en ;
        nif:beginIndex        "25"^^xsd:nonNegativeInteger ;
        nif:endIndex          "31"^^xsd:nonNegativeInteger ;
        itsrdf:taIdentRef <http://http://dbpedia.org/resource/Dublin> .

1) the object value of nif:referenceContext should be URI not literal 2) the correct name is nif:referenceContext, not nif:ReferenceContext

borriellom commented 9 years ago

Committed changes to the e-Internationalization and Documentation repositories.

borriellom commented 9 years ago

Please check if it's ok now.

m1ci commented 9 years ago

Its ok. Thanks.