query-9b0686374a7b2c98e66a754ed0edde7a

rq turtle/ttl

Properties query for a specified Class (e.g. Q5) SELECT ?property ?propertyLabel WHERE { { SELECT DISTINCT ?property WHERE { ?item wdt:P31/wdt:279* wd:Q5 ; ?propertyClaim [] . ?property wikibase:claim ?propertyClaim . ?property wikibase:propertyType ?propertyType . FILTER ( ?propertyType != wikibase:ExternalId ) } LIMIT 100 } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Properties query for a specified Class (e.g. Q5)
SELECT ?property ?propertyLabel 
  WHERE {
  {
    SELECT DISTINCT ?property WHERE {
      ?item wdt:P31/wdt:279* wd:Q5 ;
            ?propertyClaim [] .
      ?property wikibase:claim ?propertyClaim .
      ?property wikibase:propertyType ?propertyType .
      FILTER ( ?propertyType != wikibase:ExternalId )
    }
    LIMIT 100
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item") v4("?property"):::projected v3("?propertyClaim") v1("?propertyType") a2((" ")) a1((" ")) c8(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c10(["en"]):::literal f0[["?propertyType != 'wikibase:ExternalId'"]] f0 --> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:279"--> c4 v2 -->v3--> a2 v4 --"wikibase:claim"--> v3 v4 --"wikibase:propertyType"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end