DebugQueries: Difference between revisions
m (fixing some queries) |
|||
Line 13: | Line 13: | ||
PREFIX wdt: <https://graphit.ur.de/prop/direct/> | PREFIX wdt: <https://graphit.ur.de/prop/direct/> | ||
PREFIX wd: <https://graphit.ur.de/entity/> | PREFIX wd: <https://graphit.ur.de/entity/> | ||
SELECT ?source ?sourceLabel ?resource ?resourceLabel | SELECT DISTINCT ?source ?sourceLabel ?resource ?resourceLabel | ||
WHERE { | WHERE { | ||
# | # Select all items | ||
?source wdt:P1 ?dependency. | |||
?source wdt:P2 ?class. | ?source wdt:P2 ?class. | ||
MINUS {?source wdt:P21 ?resource. } | MINUS {?source wdt:P21 ?resource.} | ||
service wikibase:label { bd:serviceParam wikibase:language "en". } | service wikibase:label { bd:serviceParam wikibase:language "en". } |
Revision as of 13:55, 18 August 2023
This page contains several SPARQL-Queries to help debug the graph.
Missing Properties
No Resources
Returns all Items, that don't have any resource that they link to.
Note: Only searches through items that have a subclass, to avoid duplicates
No Subclass
Returns all Items, that don't have a property subclass.
No Dependencies
Returns all Items, that don't link any other items as dependency.
These items don't have a property depends on. This could mean, that they are a source or that they are orphaned.
Orphans
Returns all items, that don't link to any other items and are not linked to in return.
NOTE: Not sure if this works.