running off of trunk, I'm trying do a hierarchical match that catches all
trees that have a particular pattern of leaves. A "all entries that have
tags x, y, or z".

This returns a null set, despite the data existing in the graph::

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX annotea: <http://www.w3.org/2000/10/annotation-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?entry_id
WHERE {
      ?entry_uri rdf:ID ?entry_id .
      ?annotation annotea:related ?entry_uri .
      ?annotation annotea:body <http://example.org/test3> .
      ?annotation annotea:body <http://example.org/test2> .
}

(last two line represent the tags)

iirc, I used to be able do this using the old programmatic graphpatterns.
do I need a different query syntax?

-w
-- 

| david "whit" morriss
|
| contact :: http://public.xdi.org/=whit

"If you don't know where you are,
  you don't know anything at all"

  Dr. Edgar Spencer, Ph.D., 1995


"I like to write code like
other ppl like to tune their
cars or 10kW hifi equipment..."

Christian Heimes, 2004
_______________________________________________
Dev mailing list
Dev@rdflib.net
http://rdflib.net/mailman/listinfo/dev

Reply via email to