i got a query
SELECT ?resourceUri ?__TYPE ?rdfsdomain
FROM <
http://localhost/OntoWiki/Config/>
WHERE {
OPTIONAL { ?resourceUri <
http://www.w3.org/1999/02/22-rdf-syntax-
ns#type> ?__TYPE }
OPTIONAL { ?resourceUri <
http://www.w3.org/2000/01/rdf-schema#domain> ?
rdfsdomain }
FILTER (sameTerm(?resourceUri, <
http://rdfs.org/sioc/ns#has_member>)
|| sameTerm(?resourceUri, <
http://rdfs.org/sioc/ns#email>) || sameTerm
(?resourceUri, <
http://ns.ontowiki.net/SysOnt/possibleDatatype>) ||
sameTerm(?resourceUri, <
http://ns.ontowiki.net/SysOnt/grantModelEdit>)
|| sameTerm(?resourceUri, <
http://ns.ontowiki.net/SysOnt/
grantModelView>) || sameTerm(?resourceUri, <
http://ns.ontowiki.net/
SysOnt/denyModelEdit>) || sameTerm(?resourceUri, <http://
ns.ontowiki.net/SysOnt/denyModelView>) || sameTerm(?resourceUri,
<
http://ns.ontowiki.net/SysOnt/grantAccess>) || sameTerm(?resourceUri,
<
http://ns.ontowiki.net/SysOnt/denyAccess>) || sameTerm(?resourceUri,
<
http://ns.ontowiki.net/SysOnt/hiddenImports>))
}
this shows also blank nodes which is not wanted
so i added a filter
i got a query
SELECT ?resourceUri ?__TYPE ?rdfsdomain
FROM <
http://localhost/OntoWiki/Config/>
WHERE {
OPTIONAL { ?resourceUri <
http://www.w3.org/1999/02/22-rdf-syntax-
ns#type> ?__TYPE }
OPTIONAL { ?resourceUri <
http://www.w3.org/2000/01/rdf-schema#domain> ?
rdfsdomain }
FILTER (sameTerm(?resourceUri, <
http://rdfs.org/sioc/ns#has_member>)
|| sameTerm(?resourceUri, <
http://rdfs.org/sioc/ns#email>) || sameTerm
(?resourceUri, <
http://ns.ontowiki.net/SysOnt/possibleDatatype>) ||
sameTerm(?resourceUri, <
http://ns.ontowiki.net/SysOnt/grantModelEdit>)
|| sameTerm(?resourceUri, <
http://ns.ontowiki.net/SysOnt/
grantModelView>) || sameTerm(?resourceUri, <
http://ns.ontowiki.net/
SysOnt/denyModelEdit>) || sameTerm(?resourceUri, <http://
ns.ontowiki.net/SysOnt/denyModelView>) || sameTerm(?resourceUri,
<
http://ns.ontowiki.net/SysOnt/grantAccess>) || sameTerm(?resourceUri,
<
http://ns.ontowiki.net/SysOnt/denyAccess>) || sameTerm(?resourceUri,
<
http://ns.ontowiki.net/SysOnt/hiddenImports>))
FILTER(!isBlank(?rdfsdomain))
}
this filters the blanknodes, but kills also solutions for the ?__TYPE-
var when ?rdfsdomain is blank. so no even the resources dont show up
if they have a blank property.
i thought this should not happen because they both are optional...
why do they have influnce on each other?