query-292b30455b2699462f555599964a4e8f

rq turtle/ttl

У розробці: всі властивості без укр. опису (description) SELECT ?p ?d ?d2 # ?asset ?pLabel WHERE { ?p wikibase:propertyType ?pt . ?p rdfs:label ?pLabel . # OPTIONAL {?p rdfs:label ?pLabel FILTER (LANG (?pLabel) = "en") .} # ?asset a swg:PRV . OPTIONAL {?p schema:description ?d FILTER (LANG (?d) = "uk") .} OPTIONAL {?p schema:description ?d2 FILTER (LANG (?d2) = "ru") .} OPTIONAL { # ?asset cim:RSM_IdentifiedObject.name ?name . #FILTER (?name = "PRV18") } #FILTER (!BOUND(?name)) } GROUP BY ?p ?d ?d2

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# У розробці: всі властивості без укр. опису (description)
SELECT ?p ?d ?d2 # ?asset ?pLabel 
  WHERE {
      ?p wikibase:propertyType ?pt .
      ?p  rdfs:label  ?pLabel .
      # OPTIONAL {?p  rdfs:label  ?pLabel FILTER (LANG (?pLabel) = "en") .}
      # ?asset a swg:PRV .
      OPTIONAL {?p schema:description ?d FILTER (LANG (?d) = "uk") .}
      OPTIONAL {?p schema:description ?d2 FILTER (LANG (?d2) = "ru") .}
      OPTIONAL
         {
            # ?asset cim:RSM_IdentifiedObject.name ?name .
            #FILTER (?name = "PRV18")
         }
      #FILTER (!BOUND(?name))
  } GROUP BY ?p ?d ?d2

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?d"):::projected v1("?d2"):::projected v3("?p"):::projected v5("?pLabel") v4("?pt") v3 --"wikibase:propertyType"--> v4 v3 --"rdfs:label"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:description".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:description".-> v1 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; end