Hi,

My question  partly relates to the Neo4J REST db but I think this is the good 
place to ask because it has experts of semantic ontologies.

I'm using OWLAPI to parse my OWL ontology. API gives me triples and I store 
their Subject, predicate (relationship), and Object into Neo4J db. All 
individuals in the ontology are stores with their properties 
successfully. Everything is OK except the Class in the ontology.  The 
subClassOf properties of a class are not stored in the db. Let's take wine.owl 
as an example. The class Wine is defined like:
 <owl:Class rdf:ID="Wine">
    <rdfs:subClassOf rdf:resource="&food;PotableLiquid" />
    <rdfs:subClassOf>
      <owl:Restriction>
        <owl:onProperty rdf:resource="#hasMaker" />
<owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:cardinality>
      </owl:Restriction>
    </rdfs:subClassOf>
    <rdfs:subClassOf>
      <owl:Restriction>
        <owl:onProperty rdf:resource="#hasMaker" />
<owl:allValuesFrom rdf:resource="#Winery" />
      </owl:Restriction>
    </rdfs:subClassOf>
    <rdfs:subClassOf>
      <owl:Restriction>
        <owl:onProperty rdf:resource="#madeFromGrape" />
 <owl:minCardinality 
rdf:datatype="&xsd;nonNegativeInteger">1</owl:minCardinality>
      </owl:Restriction>
    </rdfs:subClassOf>
....
</owl:Class>

The Class Wine is stored as a node in the graph however all information about 
subClassOf (hasMaker, madeFromGrape...) are not stored.
I know that my code using OWLAPI does not handled this information properly so 
that they can be stored along with the class Wine. 

Anybody knows how to use OWLAPI or any API that can parse and handle these 
information of a class definition and store them into the Neo4J db?

I also wonder if individuals in the graph are enough for any processes that 
inquiry the ontology data like Cypher queries. If they are I don't have to 
worry about the issue above.

Thanks,
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to