query-bdd6040b626605a1411c203e8118c90b
Propertiesequivalent class (P1709)equivalent property (P1628)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX bgn: <http://bibliograph.net/>
PREFIX schema: <http://schema.org/>
CONSTRUCT {
?class
a rdfs:Class ;
rdfs:label ?label ;
owl:equivalentClass ?item .
?property
a rdf:Property ;
rdfs:label ?label ;
owl:equivalentProperty ?item .
bgn:AudioBook a schema:BookFormatType ;
rdfs:label "bgn:AudioBook"@en .
bgn:CartographicMap a schema:MapCategoryType ;
rdfs:label "bgn:CartographicMap"@en .
bgn:LargePrintBook a schema:BookFormatType ;
rdfs:label "bgn:LargePrintBook"@en .
bgn:PrintBook a schema:BookFormatType ;
rdfs:label "bgn:PrintBook"@en .
} WHERE {
{
?item wdt:P1709 ?class ;
FILTER(STRSTARTS(STR(?class), STR(bgn:)))
BIND(CONCAT('bgn:', STRAFTER(STR(?class), STR(bgn:))) AS ?label)
}
UNION
{
?item wdt:P1628 ?property .
FILTER(STRSTARTS(STR(?property), STR(bgn:)))
BIND(CONCAT('bgn:', STRAFTER(STR(?property), STR(bgn:))) AS ?label)
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v17("?_const_28383af6_uri")
v18("?_const_2c79312c_lit_9902a4bf_ca9")
v13("?_const_3c2c064e_lit_9902a4bf_ca9")
v9("?_const_498d7b15_uri")
v11("?_const_4bac8644_uri")
v10("?_const_65cb026b_uri")
v16("?_const_79ec4b12_lit_9902a4bf_ca9")
v6("?_const_90490760_uri")
v7("?_const_9285ccfc_uri")
v15("?_const_a4e4b34e_uri")
v8("?_const_aabebca2_uri")
v20("?_const_c5d8d9a5_lit_9902a4bf_ca9")
v19("?_const_d559599b_uri")
v12("?_const_e74965e0_uri")
v5("?_const_f5e5585a_uri")
v14("?_const_f60e7a88_uri")
v1("?class"):::projected
v2("?item"):::projected
v8("?label"):::projected
v4("?property"):::projected
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f0[["starts-with(str(?property),str(http://bibliograph.net/))"]]
f0 --> v4
v2 --"wdt:P1628"--> v4
bind1[/"concat('bgn:',substring-after(str(?property),str(http://bibliograph.net/)))"/]
v4 --o bind1
bind1 --as--o v8
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
f2[["starts-with(str(?class),str(http://bibliograph.net/))"]]
f2 --> v1
v2 --"wdt:P1709"--> v1
bind3[/"concat('bgn:',substring-after(str(?class),str(http://bibliograph.net/)))"/]
v1 --o bind3
bind3 --as--o v8
end
union0r <== or ==> union0l
end
bind4[/""a""/]
bind4 --as--o v5
bind5[/"'rdfs:Class'"/]
bind5 --as--o v6
bind6[/"'rdfs:label'"/]
bind6 --as--o v7
bind7[/"?label"/]
v8 --o bind7
bind7 --as--o v8
bind8[/"'owl:equivalentClass'"/]
bind8 --as--o v8
bind9[/"'rdf:Property'"/]
bind9 --as--o v9
bind10[/"'owl:equivalentProperty'"/]
bind10 --as--o v10
bind11[/"http://bibliograph.net/AudioBook"/]
bind11 --as--o v11
bind12[/"'schema:BookFormatType'"/]
bind12 --as--o v12
bind13[/"sbgn:AudioBook^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/]
bind13 --as--o v13
bind14[/"http://bibliograph.net/CartographicMap"/]
bind14 --as--o v14
bind15[/"'schema:MapCategoryType'"/]
bind15 --as--o v15
bind16[/"sbgn:CartographicMap^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/]
bind16 --as--o v16
bind17[/"http://bibliograph.net/LargePrintBook"/]
bind17 --as--o v17
bind18[/"sbgn:LargePrintBook^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/]
bind18 --as--o v18
bind19[/"http://bibliograph.net/PrintBook"/]
bind19 --as--o v19
bind20[/"sbgn:PrintBook^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/]
bind20 --as--o v20