query-fa2d02f758e53f728071c8b0849d6222

rq turtle/ttl

We can inspect complex parts of data model at any second SELECT ?property ?RDFNode (IF(isLiteral(?RDFNode), CONCAT("literal, datatype IRI:", STR(DATATYPE(?RDFNode))), IF(isIRI(?RDFNode), "IRI", IF(isBlank(?RDFNode), "blank node", "impossible?!!"))) as ?kindOfRDFNode) WHERE { # prefixed subjects or their IRIs # https://en.wikipedia.org/wiki/Mona%20Lisa # https://es.wikipedia.org/wiki/La%20Gioconda # https://www.wikidata.org/wiki/Wikidata:Introduction # https://ko.wikinews.org/wiki/%EC%9C%84%ED%82%A4%EB%89%B4%EC%8A%A4:%EC%86%8C%EA%B0%9C # wd:Q12418 or http://www.wikidata.org/entity/Q12418 # wd:P571 or http://www.wikidata.org/entity/P571 # wds:Q12418-8EDF7B01-3F71-4DA7-8B52-8C26242F0293 or http://www.wikidata.org/entity/statement/Q12418-8EDF7B01-3F71-4DA7-8B52-8C26242F0293 # wdref:8f08ac3e0839bdbc4c6eb8d671e772deb12ba423 or http://www.wikidata.org/reference/8f08ac3e0839bdbc4c6eb8d671e772deb12ba423 # wdv:817fac0649608d9ebd295b60135818d4 QuantityValue http://www.wikidata.org/value/817fac0649608d9ebd295b60135818d4 # wdv:804d3164e16f5c568523ef7b563ee1af QuantityValue, Normalized # wdv:800000d7a293881690f27762757ec940 wikibase:TimeValue # wdv:800fbeee96e1b9bd5d91c1f66b25365d wikibase:GlobecoordinateValue wdv:788f87d431fffec0fc34235813459708 ?property ?RDFNode. }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdv: <http://www.wikidata.org/value/>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX wdref: <http://www.wikidata.org/reference/>
PREFIX wd: <http://www.wikidata.org/entity/>
# We can inspect complex parts of data model at any second
SELECT ?property ?RDFNode (IF(isLiteral(?RDFNode), CONCAT("literal, datatype IRI:", STR(DATATYPE(?RDFNode))), IF(isIRI(?RDFNode), "IRI", IF(isBlank(?RDFNode), "blank node", "impossible?!!"))) as ?kindOfRDFNode)
WHERE
{
  # prefixed subjects                                 or their IRIs
  #                                                      <https://en.wikipedia.org/wiki/Mona%20Lisa>
  #                                                      <https://es.wikipedia.org/wiki/La%20Gioconda>
  #                                                      <https://www.wikidata.org/wiki/Wikidata:Introduction>
  #                                                      <https://ko.wikinews.org/wiki/%EC%9C%84%ED%82%A4%EB%89%B4%EC%8A%A4:%EC%86%8C%EA%B0%9C>
  #    wd:Q12418                                      or <http://www.wikidata.org/entity/Q12418>
  #    wd:P571                                        or <http://www.wikidata.org/entity/P571>
  #   wds:Q12418-8EDF7B01-3F71-4DA7-8B52-8C26242F0293 or <http://www.wikidata.org/entity/statement/Q12418-8EDF7B01-3F71-4DA7-8B52-8C26242F0293>
  # wdref:8f08ac3e0839bdbc4c6eb8d671e772deb12ba423    or <http://www.wikidata.org/reference/8f08ac3e0839bdbc4c6eb8d671e772deb12ba423>
  #   wdv:817fac0649608d9ebd295b60135818d4 QuantityValue <http://www.wikidata.org/value/817fac0649608d9ebd295b60135818d4>
  #   wdv:804d3164e16f5c568523ef7b563ee1af QuantityValue, Normalized
  #   wdv:800000d7a293881690f27762757ec940 wikibase:TimeValue
  #   wdv:800fbeee96e1b9bd5d91c1f66b25365d wikibase:GlobecoordinateValue
  wdv:788f87d431fffec0fc34235813459708 ?property ?RDFNode.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?RDFNode"):::projected v3("?kindOfRDFNode") v1("?property"):::projected c1(["wdv:788f87d431fffec0fc34235813459708"]):::iri c1 -->v1--> v2 bind0[/"if(isLiteral(?RDFNode),concat('literal, datatype IRI:',str(?RDFNode)),if(isIRI(?RDFNode),'IRI',if(isBlank(?RDFNode),'blank node','impossible?!!')))"/] v2 --o bind0 bind0 --as--o v3