Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library generates invalid turtle output #3

Open
wetneb opened this issue Jan 22, 2019 · 1 comment
Open

This library generates invalid turtle output #3

wetneb opened this issue Jan 22, 2019 · 1 comment

Comments

@wetneb
Copy link

wetneb commented Jan 22, 2019

This library generates invalid turtle output:

<http://www.cse.iitb.ac.in/~soumen/doc/CSAW/doc/yn_08Oct08_file_0/#offset_196_202>
        a                       nif:OffsetBasedString , nif:Phrase ;
        nif:anchorOf            "the famous "covfefe" tweet" ;
        nif:beginIndex          "196"^^xsd:nonNegativeInteger ;
        nif:endIndex            "222"^^xsd:nonNegativeInteger ;
        nif:referenceContext    <http://www.cse.iitb.ac.in/~soumen/doc/CSAW/doc/yn_08Oct08_file_0/#offset_0_1413> ;
        itsrdf:taClassRef        ;
        itsrdf:taConfidence     "1^^xsd:double ;
        itsrdf:taIdentRef       <http://dbpedia.org/resource/Almost> .

The following problems are present

  • "1^^xsd:double is missing a double quote
  • nif:anchorOf "the famous "covfefe" tweet" ; is missing escaping

There are other problems in context serialization.

<http://www.cse.iitb.ac.in/~soumen/doc/CSAW/doc/yn_08Oct08_file_0/#collection>
        a               nif:ContextCollection ;
        nif:hasContext  <http://www.cse.iitb.ac.in/~soumen/doc/CSAW/doc/yn_08Oct08_file_0/#offset_0_1413>
        <http://purl.org/dc/terms/conformsTo>
                <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core/2.1> .      

a ; is missing after the nif:hasContext statement.

In other words this library is currently unusable.

@wetneb
Copy link
Author

wetneb commented Jan 25, 2019

I have made a fork at https://github.com/wetneb/pynif which solves this issue (among others).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant