Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-03-2020 08:53 PM
Hi,
I am using the neosemantics plugin to load the OWL file created from protege
In the OWL file I have the owl:Restriction tag, but that information is not loaded to neo4j.
For example,
owl:Restriction
<owl:onProperty rdf:resource="http://www.xxxxxxx.com/machine.owl#hasNumber"/>
<owl:hasValue rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1027</owl:hasValue>
</owl:Restriction>
Please let me know how to load this information in the neo4j.
01-10-2021 11:21 AM
If you're importing the ontology using the n10s.onto.import
methods then this is normal because this method only imports a subset of the triples in an ontology.
Here's a fragment from the manual describing precisely that:
Ontologies are serialised as RDF, so they can be imported using plain n10s.rdf.import.fetch
but the n10s.onto.import.fetch
method will give us a higher level of control over how an RDFS or OWL ontology is imported into Neo4j. It’s important to note that this procedure exclusively imports the following:
rdfs:Class
and owl:Class
.rdf:subClassOf
statements.owl:ObjectProperty
, owl:DatatypeProperty
and rdfs:Property
rdfs:subPropertyOf
statements.rdfs:domain
and rdfs:range
statements.All other elements will be ignored by this loader.
You can try to import the ontology using the n10s.rdf.import
methods instead. While this approach imports all statements in the ontology (including restrictions) the representation may not be the most usable. On that, you may find interesting this thread on <owl:Restriction>
definitions:
Cheers,
JB.
All the sessions of the conference are now available online