incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Story (JIRA)" <>
Subject [jira] [Commented] (CLEREZZA-537) Change Node in GraphNode to be of type NonLiteral
Date Thu, 19 May 2011 10:10:47 GMT


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:
>             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:

View raw message