这是indexloc提供的服务,不要输入任何密码
Skip to content

missing subClassOf edges #7

@dpwrussell

Description

@dpwrussell

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.

screen shot 2018-02-23 at 15 21 10

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:

screen shot 2018-02-23 at 15 37 22

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions