query-fc3a448c5ede7b2262e88279ba3d764e

rq turtle/ttl

Dump wikidata entity triplets without labels, descriptions, aliases or sitelinks. SELECT ?p ?ppLabel ?o ?oLabel WHERE { VALUES ?s { wd:P4342 } ?s ?p ?o. FILTER(?p NOT IN (rdfs:label, schema:description, skos:altLabel)) OPTIONAL { ?pp wikibase:claim|wikibase:directClaim|wikibase:directClaimNormalized ?p. } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY ?p

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Dump wikidata entity triplets without labels, descriptions, aliases or sitelinks.
SELECT ?p ?ppLabel ?o ?oLabel
WHERE {
  VALUES ?s { wd:P4342 }
  ?s ?p ?o.
  FILTER(?p NOT IN (rdfs:label, schema:description, skos:altLabel))
  OPTIONAL { ?pp wikibase:claim|wikibase:directClaim|wikibase:directClaimNormalized ?p. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?p

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?o"):::projected v1("?p"):::projected v4("?pp") v2("?s") c8(["bd:serviceParam"]):::iri c10(["en"]):::literal f0[["?p != 'rdfs:label'?p != 'schema:description'?p != 'skos:altLabel'"]] f0 --> v1 bind1[/VALUES ?s/] bind1-->v2 bind10(["wd:P4342"]) bind10 --> bind1 v2 -->v1--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v4 -."wikibase:directClaimNormalized".-> v1 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v4 --"wikibase:directClaim"--> v1 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"wikibase:claim"--> v1 end union0r <== or ==> union0l end end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end