incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Story (JIRA)" <>
Subject [jira] [Created] (CLEREZZA-472) allow GraphNode to add inverse properties
Date Wed, 23 Mar 2011 15:17:18 GMT
allow GraphNode to add inverse properties

                 Key: CLEREZZA-472
             Project: Clerezza
          Issue Type: New Feature
            Reporter: Henry Story
            Assignee: Henry Story

Add the following method to graph node:

	 * Adds a property to the node with the inverse of the specified predicate and object
	 * In other words <code>subject</code> will be related via the property <code>relation</code>
to this node.
	 * @param predicate
	 * @param subject
	public void addInverseProperty(UriRef predicate, Resource subject) {
		if (resource instanceof NonLiteral) {
			graph.add(new TripleImpl((NonLiteral) resource, predicate, subject));
		} else {
			throw new RuntimeException("Literals cannot be the subject of a statement");

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

View raw message