cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Import of OWL File Leaves Nodes Without a Label

I am using Neo4j Community version 4 and am trying to import an ontology (.owl file).  I followed the steps below and the data imports, but when I look at the nodes created in the Neo4j Browser, none of them have labels on them.  They are all blank.  How do I get the nodes to display with labels?

1.  CALL n10s.graphconfig.init();

2. CALL n10s.rdf.import.fetch("file:////home/eaw39/Neo4j/RDF/OWL/v3/generic.owl", "RDF/XML")

CONTENT OF generic.owl

<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#"
xml:base="http://www.semanticweb.org/jr39/ontologies/2022/4/generic"
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/generic"/>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Object Properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->

 


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasChild -->

<owl:ObjectProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasChild">
<owl:inverseOf rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isChildOf"/>
</owl:ObjectProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember -->

<owl:ObjectProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasMember">
<owl:inverseOf rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf"/>
</owl:ObjectProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasReferenceTo -->

<owl:ObjectProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#hasReferenceTo">
<owl:inverseOf rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isReferencedFrom"/>
</owl:ObjectProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isChildOf -->

<owl:ObjectProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isChildOf">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#InverseFunctionalProperty"/>
</owl:ObjectProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf -->

<owl:ObjectProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isMemberOf">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#InverseFunctionalProperty"/>
</owl:ObjectProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isReferencedFrom -->

<owl:ObjectProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#isReferencedFrom">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#InverseFunctionalProperty"/>
</owl:ObjectProperty>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Data properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->

 


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#creationDate -->

<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#creationDate">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
</owl:DatatypeProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#description -->

<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#description">
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:DatatypeProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#id -->

<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#id">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:DatatypeProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#name -->

<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#name">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:DatatypeProperty>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#updateDate -->

<owl:DatatypeProperty rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#updateDate">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
</owl:DatatypeProperty>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->

 


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#Aggregator -->

<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#Aggregator"/>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing -->

<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#AuditableThing">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#creationDate"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onDataRange rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#updateDate"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onDataRange rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing -->

<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#DescribedThing">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#description"/>
<owl:maxQualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxQualifiedCardinality>
<owl:onDataRange rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:Restriction>
</owl:equivalentClass>
</owl:Class>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#IdentifiedThing -->

<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#IdentifiedThing">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#id"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onDataRange rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:Restriction>
</owl:equivalentClass>
</owl:Class>


<!-- http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing -->

<owl:Class rdf:about="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#NamedThing">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/jr39/ontologies/2022/4/generic#name"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onDataRange rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:Restriction>
</owl:equivalentClass>
</owl:Class>
</rdf:RDF>

 

<!-- Generated by the OWL API (version 4.5.9.2019-02-01T07:24:44Z) https://github.com/owlcs/owlapi -->

 

1 ACCEPTED SOLUTION

The nodes show the node id, or a node property. The labels are indicated by color. You can select a label in the expanded right-hand pane to change its color. 

https://neo4j.com/docs/browser-manual/current/

Styling your results:

https://neo4j.com/docs/browser-manual/current/operations/browser-styling/

 

View solution in original post

1 REPLY 1

The nodes show the node id, or a node property. The labels are indicated by color. You can select a label in the expanded right-hand pane to change its color. 

https://neo4j.com/docs/browser-manual/current/

Styling your results:

https://neo4j.com/docs/browser-manual/current/operations/browser-styling/