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:
- Named class (category) declarations with both
rdfs:Class
andowl:Class
. - Explicit class hierarchies defined with
rdf:subClassOf
statements. - Property definitions with
owl:ObjectProperty
,owl:DatatypeProperty
andrdfs:Property
- Explicit property hierarchies defined with
rdfs:subPropertyOf
statements. - Domain and range information for properties described as
rdfs:domain
andrdfs: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.