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 {
?inRel a z:typ-vztahu ;
rdfs:domain ?domElem ;
rdfs:range ?node ;
skos:prefLabel ?inRelLabel ;
browser:class ?inRelStyshClass, ?inRelGlossClass, ?inRelLGlossClass .
rdfs:domain browser:class "domain" .
rdfs:range browser:class "range" .
?domElem a z:typ-objektu ;
skos:prefLabel ?domainLabel ;
browser:class "object", ?domainGlossClass, ?domainLGlossClass .
} WHERE {
?inRel rdfs:subClassOf [
owl:allValuesFrom ?node ;
owl:onProperty z:má-vztažený-prvek-2
] .
?inRel a z:typ-vztahu ;
skos:prefLabel ?inRelLabel ;
skos:inScheme ?inRelGlossary .
FILTER (LANG(?inRelLabel) = "cs")
BIND("relation" AS ?inRelStyshClass)
BIND(REPLACE(STR(?inRelGlossary), "^https:\\/\\/slovník.gov.cz\\/([a-z])[^\\/]+\\/.+$", "$1sgov") AS ?inRelGlossClass)
BIND(REPLACE(STR(?inRelGlossary), "^https:\\/\\/slovník.gov.cz\\/legislativní\\/sbírka\\/([0-9]+)\\/([0-9]+)\\/.+$", "lsgov$1$2") AS ?inRelLGlossClass)
?inRel rdfs:subClassOf [
owl:allValuesFrom ?domElem ;
owl:onProperty z:má-vztažený-prvek-1
] .
?domElem skos:prefLabel ?domainLabel ;
skos:inScheme ?domainGlossary .
FILTER (LANG(?domainLabel) = "cs")
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)
}
|