W3C home > Mailing lists > Public > public-cwm-talk@w3.org > July to September 2008

joker in N3 queries

From: Jean-Marc Vanel <jeanmarc.vanel@gmail.com>
Date: Mon, 8 Sep 2008 10:57:19 +0200
Message-ID: <e0320dfa0809080157l3e8175cfp20ef28f1eed52959@mail.gmail.com>
To: public-cwm-talk@w3.org


Would it make sense to add some kind of joker in N3 queries ?
What do I mean with "joker" ?

Something like :

?X a  myPrefix:* .

where * stands for any resource name in that namespace .

I guess the answer is no ...
Indeed, there is nothing like that in http://www.w3.org/TeamSubmission/n3/ .

My use case is the following . I'm using Euler Proof Mechanism
<http://eulersharp.sourceforge.net/> with its new Coherent Logic
engine to infer (or instantiate if you prefer) Java objects
represented by triples such as :

_:sk2 a http://java.sun.com/class#myPackage_MyClass .

and I'd like to get hold of all those triples by this query :
?X a http://java.sun.com/class#* .

The alternative for me would be to assert all subClassOf relations for
the Java classes I use , and query this :
?X a http://java.sun.com/class#java_lang_Object .

Any idea welcome.

- I tried to find "standard" URI's for representing Java classes but couldn't
- I was obliged to use underscore instead of point as a separator of
Java packages because CWM ( and Euler ) refuse points in Qnames

Jean-Marc Vanel
Received on Monday, 8 September 2008 08:58:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:01:05 UTC