https://linked.ope...aph-browser/query
| - PREFIX z: <https://slovník.gov.cz/základní/pojem/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/>
CONSTRUCT {
?node rdfs:domain ?domElem .
?domElem a z:typ-objektu ;
skos:prefLabel ?domainLabel ;
browser:class "object", ?domainGlossClass, ?domainLGlossClass .
rdfs:domain browser:class "domain" .
?node rdfs:range ?rngElem .
?rngElem a z:typ-objektu ;
skos:prefLabel ?rngLabel ;
browser:class "object", ?rngGlossClass, ?rngLGlossClass .
rdfs:range browser:class "range" .
} WHERE {
?node rdfs:subClassOf [
owl:allValuesFrom ?domElem ;
owl:onProperty z:má-vztažený-prvek-1
] .
?domElem skos:prefLabel ?domainLabel ;
skos:inScheme ?domainGlossary .
FILTER (LANG(?domainLabel) = "en")
BIND(REPLACE(STR(?domainGlossary), "^https:\\/\\/slovník.gov.cz\\/([a-z])[^\\/]+\\/.+$", "$1sgov") AS ?domainGlossClass)
BIND(REPLACE(STR(?domainGlossary), "^https:\\/\\/slovník.gov.cz\\/legislativní\\/sbírka\\/([0-9]+)\\/([0-9]+)\\/.+$", "lsgov$1$2") AS ?domainLGlossClass)
?node rdfs:subClassOf [
owl:allValuesFrom ?rngElem ;
owl:onProperty z:má-vztažený-prvek-2
] .
?rngElem skos:prefLabel ?rngLabel ;
skos:inScheme ?rngGloss .
FILTER (LANG(?rngLabel) = "en")
BIND(REPLACE(STR(?rngGloss), "^https:\\/\\/slovník.gov.cz\\/([a-z])[^\\/]+\\/.+$", "$1sgov") AS ?rngGlossClass)
BIND(REPLACE(STR(?rngGloss), "^https:\\/\\/slovník.gov.cz\\/legislativní\\/sbírka\\/([0-9]+)\\/([0-9]+)\\/.+$", "lsgov$1$2") AS ?rngLGlossClass)
}
|