[ 
https://issues.apache.org/jira/browse/JENA-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042701#comment-13042701
 ] 

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: https://issues.apache.org/jira/browse/JENA-70
>             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. 
> methods). 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to