You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@marmotta.apache.org by Alessandra Donnini <a....@etcware.it> on 2013/11/27 08:15:29 UTC
LDPath
Is it possible to use a double filter?
Something like: I want resources that are Person union with resources that are organization?
@filter rdf:type is foaf:Person
@filetr rdf:type is org:OrganizationalUnit
and if yes what is the correct syntax?
thank you
Alex
Re: LDPath
Posted by Jakob Frank <ja...@apache.org>.
Hi Alex,
LDPath allows only one @filter statement.
I think you are looking for the following:
@filter rdf:type is foaf:Person | rdf:type is org:OrganizationalUnit
This will match both ex:foo and ex:bar:
ex:foo a foaf:Person.
ex:bar a org:OrganizationalUnit
Generally speaking, you can use any LDPath TEST [1] within the @filter
statement.
Best,
Jakob
[1] http://wiki.apache.org/marmotta/LDPath#Value_Testing
On 27 November 2013 08:15, Alessandra Donnini <a....@etcware.it> wrote:
> Is it possible to use a double filter?
> Something like: I want resources that are Person union with resources that are organization?
> @filter rdf:type is foaf:Person
> @filetr rdf:type is org:OrganizationalUnit
> and if yes what is the correct syntax?
> thank you
> Alex
>