On Thu, 2010-12-30 at 15:21 -0500, Benson Margulies wrote:
> I make the following java call. None of the triples is literally a
> Rex.relationship; they are all written with some sub prop or another.
>
> I was hoping / expecting that the triples that I got back would be the
> actual triples with the actual specific property in them, but, as it
> were, no such luck. They all come back with, yup, Rex.relationship, in
> the middle slot. So, um, what's the right way?
>
>
> StmtIterator sameAsStmts = model.listStatements(item,
> Rex.relationship, (RDFNode)null);
There isn't a direct way to that.
Easiest approach is probably the brute force query such as:
SELECT ?p WHERE
{
?item ?p ?obj .
?p rdfs:subPropertyOf rex:relationship .
}
Dave