template.rdfs.rul Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-core Show documentation
Show all versions of corese-core Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
"
"Namespace: "
"" str(?uri) ""
""
}
where {
bind(st:get(st:uri) as ?uri)
}
]]>
"
"Class " "" strafter(?in, ?uri) "" "
"
"subClassOf: " group distinct { strafter(?s, ?uri) } "
"
"label: " group distinct { str(?l) ; separator="; "} "
"
"comment: " group distinct { str(?c) ; separator="
"}
""
}
where {
bind (coalesce(st:get(st:uri), "") as ?uri)
?in a rdfs:Class
optional { ?in rdfs:subClassOf ?s }
optional { ?in rdfs:label ?l }
optional { ?in rdfs:comment ?c }
}
]]>
"
"Property " "" strafter(?in, ?uri) "" "
"
"subPropertyOf: " group distinct { strafter(?s, ?uri) } "
"
"domain: " group distinct { strafter(?d, ?uri) } "
"
"range: " group distinct { strafter(?r, ?uri) } "
"
"label: " group distinct { str(?l) ; separator="; "} "
"
"comment: " group distinct { str(?c) ; separator="
"}
""
}
where {
bind (coalesce(st:get(st:uri), "") as ?uri)
?in a rdf:Property
filter( strstarts(?in, ?uri) )
optional { ?in rdfs:subProperty ?s }
optional { ?in rdfs:domain ?d }
optional { ?in rdfs:range ?r }
optional { ?in rdfs:label ?l }
optional { ?in rdfs:comment ?c }
}
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy