You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Henry Story (JIRA)" <ji...@apache.org> on 2011/03/23 16:17:18 UTC

[jira] [Created] (CLEREZZA-472) allow GraphNode to add inverse properties

allow GraphNode to add inverse properties
-----------------------------------------

                 Key: CLEREZZA-472
                 URL: https://issues.apache.org/jira/browse/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: http://www.atlassian.com/software/jira

[jira] [Closed] (CLEREZZA-472) allow GraphNode to add inverse properties

Posted by "Henry Story (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Story closed CLEREZZA-472.
--------------------------------


> allow GraphNode to add inverse properties
> -----------------------------------------
>
>                 Key: CLEREZZA-472
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-472
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Henry Story
>            Assignee: Henry Story
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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 (subject instanceof NonLiteral) {
> 			graph.add(new TripleImpl((NonLiteral) subject, predicate, resource));
> 		} 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: http://www.atlassian.com/software/jira

[jira] [Updated] (CLEREZZA-472) allow GraphNode to add inverse properties

Posted by "Henry Story (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Story updated CLEREZZA-472:
---------------------------------

           Description: 
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 (subject instanceof NonLiteral) {
			graph.add(new TripleImpl((NonLiteral) subject, predicate, resource));
		} else {
			throw new RuntimeException("Literals cannot be the subject of a statement");
		}
	}


  was:
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");
		}
	}


    Remaining Estimate: 1h
     Original Estimate: 1h

> allow GraphNode to add inverse properties
> -----------------------------------------
>
>                 Key: CLEREZZA-472
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-472
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Henry Story
>            Assignee: Henry Story
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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 (subject instanceof NonLiteral) {
> 			graph.add(new TripleImpl((NonLiteral) subject, predicate, resource));
> 		} 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: http://www.atlassian.com/software/jira

[jira] [Resolved] (CLEREZZA-472) allow GraphNode to add inverse properties

Posted by "Henry Story (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Story resolved CLEREZZA-472.
----------------------------------

    Resolution: Fixed

checked that in a while ago

> allow GraphNode to add inverse properties
> -----------------------------------------
>
>                 Key: CLEREZZA-472
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-472
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Henry Story
>            Assignee: Henry Story
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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 (subject instanceof NonLiteral) {
> 			graph.add(new TripleImpl((NonLiteral) subject, predicate, resource));
> 		} 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: http://www.atlassian.com/software/jira