query-e4cb308d721ffbb4d7462c9a2f0c9e8d

rq turtle/ttl

Propertiesfile format identification pattern (P4152)encoding (P3294)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
SELECT ?item ?itemLabel ?pattern ?encodage ?encodageLabel
WHERE 
{
  ?item p:P4152 ?patternStatement.
  ?patternStatement ps:P4152 ?pattern.
  ?patternStatement  pq:P3294 ?encodage.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  # PRONOM internal signature
  FILTER (str(?encodage) != 'http://www.wikidata.org/entity/Q35432091')
  # HEXA pattern
  #FILTER (str(?encodage) != 'http://www.wikidata.org/entity/Q82828')
  # ASCII pattern
  FILTER (str(?encodage) != 'http://www.wikidata.org/entity/Q8815')
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?encodage"):::projected v2("?item"):::projected v4("?pattern"):::projected v3("?patternStatement") c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["str(?encodage) != 'http://www.wikidata.org/entity/Q8815'"]] f0 --> v1 f1[["str(?encodage) != 'http://www.wikidata.org/entity/Q35432091'"]] f1 --> v1 v2 --"p:P4152"--> v3 v3 --"p:statement/P4152"--> v4 v3 --"p:qualifier/P3294"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end