zazuko / rdf-sketch

Sketch RDF in the web browser with immediate visualization
http://sketch.zazuko.com/
MIT License
25 stars 0 forks source link

The source ID is not ok #23

Open BenjaminHofstetter opened 11 hours ago

BenjaminHofstetter commented 11 hours ago

This has missing link Connection Points for the Source

@prefix blueprint: <https://flux.described.at/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://ld.flux.zazuko.com/DatasetRoottoGovernmentOrganizationTreeLink> sh:targetClass <https://ld.flux.zazuko.com/DatasetRootTree> ;
   rdfs:label "Publisher" ;
   sh:property _:anon-genid-e1929cc2b90d4b3a9ca892d6f57e0240-4 ;
   blueprint:target <http://schema.org/GovernmentOrganization> ;
   a blueprint:CompositionToNodeLink .
_:anon-genid-e1929cc2b90d4b3a9ca892d6f57e0240-4 sh:targetClass <https://schema.ld.admin.ch/datamngt#DatasetRoot> ;
   sh:path _:anon-genid-e1929cc2b90d4b3a9ca892d6f57e0240-5 ;
   sh:class <http://schema.org/GovernmentOrganization> .
BenjaminHofstetter commented 10 hours ago

Fixed the query and it almost works. Not the derived query is having issues. The order of the path should be reversed. Don't type check intermediate nodes because we don't know the type.