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

Henry Story commented on CLEREZZA-537:
--------------------------------------

what about making it a Generic? Perhaps with a subclass implementation of the 
generic?

GraphNode[T <: Resource](obj: T, g: TripleCollection)

Then one could even create a specialised subclass that is limited to NonLiterals

> Change Node in GraphNode to be of type NonLiteral
> -------------------------------------------------
>
>                 Key: CLEREZZA-537
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-537
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Henry Story
>
>       public GraphNode(Resource resource, TripleCollection graph) 
>         public Resource getNode() 
> Can a Graph node have a literal subject? (I am not against it, and I suppose 
> with getInverseProperties and setInverseProperties this even makes sense)
> Just if this is not to be allowed then one should restrict the node to be 
> NonLiteral, as that would make a lot of code need fewer casts

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

Reply via email to