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:subClassOf ?parent .
?parent a z:typ-objektu ;
skos:prefLabel ?parentLabel ;
browser:class "object-type", ?parentGlossaryClass .
?child a z:typ-objektu ;
rdfs:subClassOf ?node ;
skos:prefLabel ?childLabel ;
browser:class "object-type" .
rdfs:subClassOf browser:class ?subClassOfStylesheetClass .
?typeDomain a ?typeDomainClass ;
rdfs:domain ?node ;
skos:prefLabel ?typeDomainLabel ;
browser:class ?typeDomainStylesheetClass, ?typeDomainGlossaryClass .
rdfs:domain browser:class ?domainStylesheetClass .
?typeRange a ?typeRangeClass ;
rdfs:range ?node ;
skos:prefLabel ?typeRangeLabel ;
browser:class ?typeRangeStylesheetClass, ?typeRangeGlossaryClass .
rdfs:range browser:class ?rangeStylesheetClass, ?typeRangeGlossaryClass .
} WHERE {
OPTIONAL {
?node rdfs:subClassOf ?parent .
?parent skos:prefLabel ?parentLabel ;
skos:inScheme ?parentGlossary .
FILTER (LANG(?parentLabel) = "cs")
BIND("sub-class-of" AS ?subClassOfStylesheetClass)
BIND(
IF(
?parentGlossary = <https://slovník.gov.cz/základní/glosář>,
"zsgov",
IF(
?parentGlossary = <https://slovník.gov.cz/veřejný-sektor/glosář>,
"vsgov",
IF(
CONTAINS(STR(?parentGlossary), "legislativní"),
"lsgov",
"asgov"
)
)
)
AS ?parentGlossaryClass)
}
OPTIONAL {
?child rdfs:subClassOf ?node ;
skos:prefLabel ?childLabel ;
skos:inScheme ?childGlossary .
FILTER (LANG(?childLabel) = "cs")
BIND("sub-class-of" AS ?subClassOfStylesheetClass)
BIND(
IF(
?childGlossary = <https://slovník.gov.cz/základní/glosář>,
"zsgov",
IF(
?childGlossary = <https://slovník.gov.cz/veřejný-sektor/glosář>,
"vsgov",
IF(
CONTAINS(STR(?childGlossary), "legislativní"),
"lsgov",
"asgov"
)
)
)
AS ?childGlossaryClass)
}
OPTIONAL {
?typeDomain a ?typeDomainClass ;
rdfs:domain ?node ;
skos:prefLabel ?typeDomainLabel ;
skos:inScheme ?typeDomainGlossary .
FILTER (LANG(?typeDomainLabel) = "cs")
FILTER(?typeDomainClass IN (z:typ-vlastnosti, z:typ-vztahu))
BIND(
IF(
?typeDomainClass = z:typ-vlastnosti,
"trobe-type",
"relation-type"
) AS ?typeDomainStylesheetClass
)
BIND("domain" AS ?domainStylesheetClass)
BIND(
IF(
?typeDomainGlossary = <https://slovník.gov.cz/základní/glosář>,
"zsgov",
IF(
?typeDomainGlossary = <https://slovník.gov.cz/veřejný-sektor/glosář>,
"vsgov",
IF(
CONTAINS(STR(?typeDomainGlossary), "legislativní"),
"lsgov",
"asgov"
)
)
)
AS ?typeDomainGlossaryClass)
}
OPTIONAL {
?typeRange a ?typeRangeClass ;
rdfs:range ?node ;
skos:prefLabel ?typeRangeLabel ;
skos:inScheme ?typeRangeGlossary .
FILTER (LANG(?typeRangeLabel) = "cs")
FILTER(?typeRangeClass IN (z:typ-vlastnosti, z:typ-vztahu))
BIND(
IF(
?typeRangeClass = z:typ-vlastnosti,
"trobe-type",
"relation-type"
) AS ?typeRangeStylesheetClass
)
BIND("range" AS ?rangeStylesheetClass)
BIND(
IF(
?typeRangeGlossary = <https://slovník.gov.cz/základní/glosář>,
"zsgov",
IF(
?typeRangeGlossary = <https://slovník.gov.cz/veřejný-sektor/glosář>,
"vsgov",
IF(
CONTAINS(STR(?typeRangeGlossary), "legislativní"),
"lsgov",
"asgov"
)
)
)
AS ?typeRangeGlossaryClass)
}
}
|