You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:tonyUser 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.
I think the behaviour you describe is intended and this is why:
First of all I don't think your class "Subject" will be discovered in your example because there are no entities which are directly Subjects, only Users and Groups.
This is the SPARQL query being used to extract the classes:
SELECT DISTINCT ?class (count(?sub) AS ?instanceCount)
WHERE {
?sub a ?class.
}
GROUP BY ?class
ORDER BY DESC(?instanceCount);
As you see, there is no part to take instances of subclasses into account.
Secondly, as LD-VOWL only works on the ABox, subclass relations are detected via the number of common instances in step 2 of the extraction:
Speaking in sets you would expect this to be true:
|User| < |Subject| and |User ∩ Subject| = |User|
Every user is a subject but not every subject is a user, so the class User is a proper subset of class Subject which indicates User is a subclass of Subject
But if you make one entity of type User also of type Subject you will end up with the following:
|Subject| < |User| and |User ∩ Subject| = |Subject|
Now the class Subject is a proper subset of User and this is why the arrow in your second screenshot goes into the wrong direction.
Activity
marc92w commentedon Mar 16, 2018
Hi,
I think the behaviour you describe is intended and this is why:
First of all I don't think your class "Subject" will be discovered in your example because there are no entities which are directly Subjects, only Users and Groups.
This is the SPARQL query being used to extract the classes:
As you see, there is no part to take instances of subclasses into account.
Secondly, as LD-VOWL only works on the ABox, subclass relations are detected via the number of common instances in step 2 of the extraction:
Speaking in sets you would expect this to be true:
Every user is a subject but not every subject is a user, so the class User is a proper subset of class Subject which indicates User is a subclass of Subject
But if you make one entity of type User also of type Subject you will end up with the following:
Now the class Subject is a proper subset of User and this is why the arrow in your second screenshot goes into the wrong direction.
For more information about the extraction process please have a look at our EKAW paper Extraction and Visualization of TBox Information from SPARQL Endpoints and if you have further questions feel free to ask.