Hi, Using VOS: 06.01.3127.
I have what looks like this bug<http://sourceforge.net/tracker/?func=detail&aid=3397514&group_id=161622&atid=820574> . A query works fine up to a point and then returns zero results, despite there being results to return. The query has three FILTERs, one inside an OPTIONAL clause. If the clause is not optional then the query returns results, if one of the outside FILTERs is removed then the query returns results. If the OPTIONAL clause is empty "OPTIONAL{}" then no results are returned but if removed then results are returned. The query is this (more or less): prefix ont: <http://stuff/ontology> select ?Item, xsd:int(?qtyA), xsd:int(?qtyB), ?Location { GRAPH < http://stuff> { ?Header ont:Receiver "123"; ont:DateFrom ?dateFrom filter((bif:month(xsd:date(?dateFrom)) = 2) && (bif:year(xsd:date(?dateFrom)) = 2012)) ?Header ont:HeaderHasLines ?lis . ?lis ont:ItemID ?Item filter(?Item = "AAA") ?lis ont:LineHasLineDetail ?lidA . ?lidA ont:Code "X" ; ont:LineDetailHasQuantity ?dqA . ?dqA ont:Quantity ?qtyA ; ont:LocationCode ?Location. OPTIONAL {?lis ont:LineHasLineDetail ?lidB . ?lidB ont:Code "Y" ; ont:LineDetailHasQuantity ?dqB . ?dqB ont:Quantity ?qtyB ; ont:LocationCode ?LocationB filter(SAMETERM(?Location,?LocationB))} } } I think I just saw that the SAMETERM isn't strictly necessary but it still feels like a bug to me. -- Quentin | Clear Blue Water Pty Ltd [email protected]
