sttl.owleltc.classexpowleltc.one.rq 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.
# enumerations involving more than one individual (ObjectOneOf and DataOneOf)
template {
?suc
}
where {
select ?suc where {
{
# count the number of individuals into our oneOf
select ?in (count(?individual) as ?nbInd) {
?in owl:oneOf ?z
?z rdf:rest*/rdf:first ?individual
} group by ?in
}
# a single individual or a single literal
bind((?nbInd = 1) as ?suc)
filter(st:visit(st:err("one"), ?in, ?suc))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy