I'm writing a utility for "safe" global search/replace/refactor across
multiple rdf/owl xml files without loss or changing them. It is amazing how
few libraries can fully round-trip RDF-XML, including rdflib.
The first problems I encountered were with restoring entity definitions and
expansions, I was able to hack some of the libraries to get this to work.
But, I now find that a common practice in these ontologies
(http://www.edmcouncil.org/financialbusiness) is not supported by rdflib, I
was wondering if there was a fix or work-around. I do not have control over
how the OWL is formed.
The error I got was: UserWarning: Assertions on rdflib.term.BNode('<some
id>') other than RDF.first and RDF.rest are ignored ... including RDF.List
Here is an example of the OWL:
<owl:Class rdf:about="&fibo-sec-dbt-ab-cdo;CreditworthinessSelection">
<rdfs:label>creditworthiness selection</rdfs:label>
<owl:equivalentClass>
<rdfs:Datatype>
<owl:oneOf>
<rdf:List>
<rdf:first>Alt A</rdf:first>
<rdf:rest>
<rdf:List>
<rdf:first>NonPrime</rdf:first>
<rdf:rest>
<rdf:List>
<rdf:first>Prime</rdf:first>
<rdf:rest>
<rdf:List>
<rdf:first>SubPrime</rdf:first>
<rdf:rest rdf:resource="&rdf;nil"/>
</rdf:List>
</rdf:rest>
</rdf:List>
</rdf:rest>
</rdf:List>
</rdf:rest>
</rdf:List>
</owl:oneOf>
</rdfs:Datatype>
</owl:equivalentClass>
</owl:Class>
What this produced was not valid. Note that I also don't want rdf_nodeID to
be generated.
Thanks in advance!
--
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rdflib-dev/3684591b-d39c-4a13-a901-f967f35e7802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.