Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-03-2022 04:09 AM
I have an ontology file that I am trying to import into NEO4J Community version 4.4.7. When I import the file I see the proper nodes, however the relationships between the nodes are missing. How do I import the relationships for the nodes?
Commands Used To Import:
1. call n10s.graphconfig.init();
2. call n10s.rdf.import.fetch("file:////home/msrmetadata.owl", "RDF/XML");
File Imported:
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#"
xml:base="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata"
xmlns:msr="http://www.semanticweb.org/jr39/ontologies/2022/4/msr#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<owl:Ontology rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata">
<owl:imports rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic"/>
</owl:Ontology>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#Aggregator -->
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#Aggregator">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember"/>
<owl:someValuesFrom rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
</owl:Restriction>
</owl:equivalentClass>
</rdf:Description>
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Attribute -->
<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Attribute">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Entity"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onClass rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Entity"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DiscreteValue -->
<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DiscreteValue">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DomainDefinition"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onClass rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DomainDefinition"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DomainDefinition -->
<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DomainDefinition">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DiscreteValue"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Entity -->
<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Entity">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Attribute"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Model"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onClass rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Model"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Model -->
<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Model">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#IdentifiedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Entity"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#SubjectArea"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
<owl:minQualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minQualifiedCardinality>
<owl:onClass rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#SubjectArea"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#SubjectArea -->
<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#SubjectArea">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember"/>
<owl:allValuesFrom rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Model"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// General axioms
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<rdf:Description>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Attribute"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DiscreteValue"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#DomainDefinition"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Entity"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#Model"/>
<rdf:Description rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/msrmetadata#SubjectArea"/>
</owl:members>
</rdf:Description>
</rdf:RDF>
<!-- Generated by the OWL API (version 4.5.9.2019-02-01T07:24:44Z) https://github.com/owlcs/owlapi -->
All the sessions of the conference are now available online