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

Parsing rdf file containing cardinality restriction #4

Open
duy-tran opened this issue Mar 22, 2019 · 1 comment
Open

Parsing rdf file containing cardinality restriction #4

duy-tran opened this issue Mar 22, 2019 · 1 comment

Comments

@duy-tran
Copy link

I made a new issue since #3 is closed. When parsing an RDF graph containing cardinality, for example:

<owl:Class rdf:about="http://protege.stanford.edu/plugins/owl/owl-library/koala.owl#Animal">
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://protege.stanford.edu/plugins/owl/owl-library/koala.owl#hasHabitat"/>
                <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
    </owl:Class>

The tag <owl:Restriction> is treated as blank node, raising error java.lang.ClassCastException: Cannot cast a BlankNode to a URI

Debug screen before the error
bug

@ansell
Copy link
Member

ansell commented Mar 26, 2019

Semweb4J/RDF2GO is not maintained anymore. You may be better off trying RDF4J or Jena.

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

2 participants