-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hi,
I found this tool and started to make use of it to visualize my RDF database, which is great!
I don't quite understand what is happening with respect to subClassOf edges though. This example helps demonstrate.
The class hierarchy is:
- Subject
- User
- Group
From reading your paper I think that subClassOf relations should be the second step in extracting data.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <http://example.org/schema#>
PREFIX d: <http://example.org/data#>
INSERT DATA {
:Subject rdf:type rdfs:Class .
:User rdf:type rdfs:Class ;
rdfs:subClassOf :Subject .
:Group rdf:type rdfs:Class ;
rdfs:subClassOf :Subject .
d:bobGroup rdf:type :Group ;
:name "Bob's Group" .
d:jimGroup rdf:type :Group ;
:name "Jim's Group" .
d:tony rdf:type :User ;
:name "Tony" ;
:memberOf d:jimGroup .
d:bob rdf:type :User ;
:name "Bob Himself" ;
:memberOf d:bobGroup .
}However, all I see is this. The Subject class is never shown.
While I was debugging this, I accidentally added a triple to the d:tony User making it of type Subject as well as User. This doesn't really make sense, but it did cause the subClassOf edge to start appearing, so I'm pretty sure the triples are correct, but for some reason, the subClassOf does not get explored when I didn't have the below triple.
d:tony rdf:type :Subject .Visualization with the Subject type:
Thanks