I found a SPARQL query which works with MemModel and not with DbModel :
SELECT ?attribute ?value ?instance WHERE {
<http://acme.com/foo#BAR>
?attribute
?value
OPTIONAL {
FILTER (regex(?attribute, "Relation^"))
.
?value
<http://acme.com/bar#nitz>
?instance
}
}
With the MemModel it works as intended but with the DbModel i get :
<sparql>
Array
</sparql>
Note : I query it through NetAPI.