You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Manuel Quintero Fonseca <ma...@uas.edu.mx> on 2017/12/03 00:17:36 UTC

Query sparql where 3 values of 4 match.

Hello, it will be possible to make this kind of query with sparql, for
example I have squares defined with 4 sides, square1 has l1, l2, l3, l4, so
if they are square2, square3, square4 ... n.

All this is stored in an ontology with individual, typos and data .. etc as
it should be.

The doubt is, it is possible to make the query, having the 4 values to look
for, but if only 3 values are the same I return that squares are those that
coicide with only 3 sides.

regards

Re: Query sparql where 3 values of 4 match.

Posted by Lorenz Buehmann <bu...@informatik.uni-leipzig.de>.
Without seeing sample data which can be used for testing, you won't get
an answer here. SPARQL supports sub-SELECT, FILTER and EXISTS. So, yes,
this *could* work.

In addition, the mailing list is more focused on Apache Jena related topics.


On 03.12.2017 01:17, Manuel Quintero Fonseca wrote:
> Hello, it will be possible to make this kind of query with sparql, for
> example I have squares defined with 4 sides, square1 has l1, l2, l3, l4, so
> if they are square2, square3, square4 ... n.
>
> All this is stored in an ontology with individual, typos and data .. etc as
> it should be.
I don't think that you want to have "typos" in your ontology.
>
> The doubt is, it is possible to make the query, having the 4 values to look
> for, but if only 3 values are the same I return that squares are those that
> coicide with only 3 sides.
>
> regards
>