SolidBench / SolidBench.js

A benchmark for Solid to simulate vaults with social network data.
MIT License
10 stars 11 forks source link

Tags do not generate correct type relations. #9

Closed jitsedesmet closed 12 months ago

jitsedesmet commented 1 year ago

The diagram in the readme suggests tags have a hasType relation, this is not true. The snb dataset uses rdf:type to model this relationship instead, I suggest we update the diagram to be consistent (rdf:type relationships are visualized with white arrows?)

image

Additionally tags are not generated correctly, right now a tag document looks like this:

<http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/Chloe_Dancer/Crown_of_Thorns> <http://xmlns.com/foaf/0.1/name> "Chloe_Dancer/Crown_of_Thorns" .
<http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/Chloe_Dancer/Crown_of_Thorns> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:b0_tagclass000180 .
<http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/Chloe_Dancer/Crown_of_Thorns> <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/id> "15517"^^<http://www.w3.org/2001/XMLSchema#int> .

Note that the type is a blanknode, but the blank node is not further defined.

The original dataset has the following info:

<http://www.ldbc.eu/ldbc_socialnet/1.0/tag/Hamid_Karzai> foaf:name "Hamid_Karzai" .
<http://www.ldbc.eu/ldbc_socialnet/1.0/tag/Hamid_Karzai> rdf:type _:tagclass000349 .
<http://www.ldbc.eu/ldbc_socialnet/1.0/tag/Hamid_Karzai> snvoc:id "0"^^xsd:int .
_:tagclass000349 rdfs:label "OfficeHolder" .
_:tagclass000349 rdf:type snvoc:TagClass .
_:tagclass000349 snvoc:url dbpedia-owl:OfficeHolder .
_:tagclass000349 snvoc:id "349"^^xsd:int .
_:tagclass000349 rdfs:subClassOf _:tagclass000211 .

So there is additional information provided regarding the blankNode. We should also implement this and provide the blank nodes as resources.

rubensworks commented 12 months ago

Regarding the diagram; it's provided by LDBC, and is format-agnostic. So it may not fully correspond to RDF.

If we want to modify the schema, we'll have to start from scratch (which is possible, but will require a big effort).

jitsedesmet commented 12 months ago

I don't think it's worth the effort. I think the schema wants to capture more of the "semantics" and shouldn't be seen as a literal visualization of the data.