query-7c0a84f33e7a8e53cb8fff0d8658c060
Norwegian properties SELECT ?itemLabel ?itemDescription ?regex1 ?regex2 ?item #?modified (URI(CONCAT("https://www.wikidata.org/wiki/Property_talk:", SUBSTR(STR(?item), 32))) AS ?talkpage) #(URI(CONCAT("https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violations/", SUBSTR(STR(?item), 32))) AS ?crep) #(URI(CONCAT("https://www.wikidata.org/wiki/Wikidata:Database_reports/Complex_constraint_violations/", SUBSTR(STR(?item), 32))) AS ?ccrep) WHERE { ?item rdf:type wikibase:Property; wikibase:propertyType wikibase:ExternalId; wdt:P17 wd:Q20; schema:dateModified ?modified. OPTIONAL { ?item wdt:P1793 ?regex1 . } OPTIONAL { ?item p:P2302 ?cst . ?cst a wikibase:BestRank . ?cst ps:P2302 wd:Q21502404 . ?cst pq:P1793 ?regex2 . } SERVICE wikibase:label { bd:serviceParam wikibase:language "nb,en". } } ORDER BY xsd:integer(SUBSTR(STR(?item), 33))
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Norwegian properties
SELECT
?itemLabel ?itemDescription ?regex1 ?regex2 ?item #?modified
(URI(CONCAT("https://www.wikidata.org/wiki/Property_talk:", SUBSTR(STR(?item), 32))) AS ?talkpage)
#(URI(CONCAT("https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violations/", SUBSTR(STR(?item), 32))) AS ?crep)
#(URI(CONCAT("https://www.wikidata.org/wiki/Wikidata:Database_reports/Complex_constraint_violations/", SUBSTR(STR(?item), 32))) AS ?ccrep)
WHERE {
?item rdf:type wikibase:Property;
wikibase:propertyType wikibase:ExternalId;
wdt:P17 wd:Q20;
schema:dateModified ?modified.
OPTIONAL { ?item wdt:P1793 ?regex1 . }
OPTIONAL {
?item p:P2302 ?cst .
?cst a wikibase:BestRank .
?cst ps:P2302 wd:Q21502404 .
?cst pq:P1793 ?regex2 .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "nb,en". }
}
ORDER BY xsd:integer(SUBSTR(STR(?item), 33))