This HTML5 document contains 4 embedded RDF statements represented using HTML+Microdata notation.
The embedded RDF content will be recognized by any processor of HTML5 Microdata.
Namespace Prefixes
Prefix | IRI |
dcterms | http://purl.org/dc/terms/ |
n5 | https://linked.opendata.cz/resource/knowledge-graph-browser/dataset/ |
rdf | http://www.w3.org/1999/02/22-rdf-syntax-ns# |
n4 | https://linked.opendata.cz/ontology/knowledge-graph-browser/ |
xsdh | http://www.w3.org/2001/XMLSchema# |
n2 | https://linked.opendata.cz/resource/knowledge-graph-browser/expansion-query/glossary/ |
Statements
- Subject Item
- n2:complete
- rdf:type
-
n4:ExpansionQuery
- dcterms:title
-
Concepts defined in a glossary and their inheritance
- n4: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 {
?concept skos:inScheme ?node ;
skos:prefLabel ?conceptLabel ;
rdfs:subClassOf ?parent ;
browser:class ?class, ?glossaryClass .
?parent skos:prefLabel ?parentLabel ;
skos:inScheme ?parentGlossary ;
browser:class ?parentClass, ?parentGlossaryClass .
} WHERE {
?concept skos:inScheme ?node ;
skos:prefLabel ?conceptLabel .
FILTER (LANG(?conceptLabel) = "cs")
VALUES (?sgovType ?class) {(z:typ-objektu "object-type") (z:typ-vlastnosti "trobe-type") (z:typ-vztahu "relation-type") (z:typ-události "event-type") (z:typ "type") }
?concept rdf:type/rdfs:subClassOf* ?sgovType .
BIND("sub-class-of" AS ?subClassOfStylesheetClass)
BIND(
IF(
?node = <https://slovník.gov.cz/základní/glosář>,
"zsgov",
IF(
?node = <https://slovník.gov.cz/veřejný-sektor/glosář>,
"vsgov",
IF(
CONTAINS(STR(?node), "legislativní"),
"lsgov",
"asgov"
)
)
)
AS ?glossaryClass)
OPTIONAL {
?concept rdfs:subClassOf ?parent .
?parent skos:prefLabel ?parentLabel ;
skos:inScheme ?parentGlossary .
FILTER (LANG(?parentLabel) = "cs")
OPTIONAL {
VALUES (?parentSgovType ?parentClass) {(z:typ-objektu "object-type") (z:typ-vlastnosti "trobe-type") (z:typ-vztahu "relation-type") (z:typ-události "event-type") (z:typ "type") }
?parent rdf:type/rdfs:subClassOf* ?parentSgovType .
}
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)
}
}
- n4:hasDataset
-
n5:sgov