incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Seaborne (JIRA)" <>
Subject [jira] [Commented] (JENA-70) Node.ANY is not detected as a variable
Date Thu, 02 Jun 2011 10:55:47 GMT


Andy Seaborne commented on JENA-70:

>From the second part, this seems to be really about I/O. I suggest a general discussion
on email is going to be better because it exposes the issues to several other intersted people
(e.g. JENA-44, JENA-45)

There is no reason why OutputLangUtils can't encode Node.ANY as well - there is not need for
a major change to the Node contract for this.  There are many deployed applications using
Jena and a change such as this could have wide implications.

The operation .isURI() implies that the Node really is a URI node, and so getURI() return
something.  It woudl be wrong to have isURI true on Node.ANY because that node does not return
a URI.

Adding isVariable() implies it's a named variable - named varibales are used to associate
values in query results.  Node.ANY does not do that.

I propose we close this with "no fix" and discuss in a general context on email.

> Node.ANY is not detected as a variable
> --------------------------------------
>                 Key: JENA-70
>                 URL:
>             Project: Jena
>          Issue Type: Improvement
>          Components: Jena
>            Reporter: Laurent Pellegrino
>              Labels: jena, node.any
> In the javadoc it is said "A Node_ANY (there should be only one) is a meta-node that
is used to stand *for any* other node in a query". Hence, I was expecting that any call to
isVariable, isLiteral, isURI, etc. return true.
> Iam raising this issue because in OutputLangUtils it is not possible to output (serialize)
a Node_ANY. Hence, I think there are two solutions to support it. Either we can add a small
code to handle the issue in the output method from OutputLangUtils or we can correct the Node_ANY
class to support what is stated by the javadoc (by overriding is* and getName, getURI, etc.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message