/** * Add resource * * @param resource resource to add * @return jastor object for resource * @throws org.openanzo.rdf.jastor.JastorException */ public org.openanzo.ontologies.execution.SemanticOperation addOperation( org.openanzo.rdf.Resource resource) throws org.openanzo.rdf.jastor.JastorException { org.openanzo.ontologies.execution.SemanticOperation operation = org.openanzo.ontologies.execution.SemanticServiceFactory.getSemanticOperation( resource, _graph.getNamedGraphUri(), _dataset); _dataset.add(_resource, operationProperty, operation.resource(), _graph.getNamedGraphUri()); return operation; }
/** * Remove object * * @param operation object to remove * @throws org.openanzo.rdf.jastor.JastorException */ public void removeOperation(org.openanzo.ontologies.execution.SemanticOperation operation) throws org.openanzo.rdf.jastor.JastorException { if (!_dataset.contains( _resource, operationProperty, operation.resource(), _graph.getNamedGraphUri())) return; _dataset.remove(_resource, operationProperty, operation.resource(), _graph.getNamedGraphUri()); }
/** * @param operation value to add * @throws org.openanzo.rdf.jastor.JastorException */ public void addOperation(org.openanzo.ontologies.execution.SemanticOperation operation) throws org.openanzo.rdf.jastor.JastorException { _dataset.add(_resource, operationProperty, operation.resource(), _graph.getNamedGraphUri()); }