public org.openanzo.ontologies.execution.StateStyleEnum setStateStyle() throws org.openanzo.rdf.jastor.JastorException { _dataset.remove(_resource, stateStyleProperty, null, _graph.getNamedGraphUri()); org.openanzo.ontologies.execution.StateStyleEnum stateStyle = org.openanzo.ontologies.execution.SemanticServiceFactory.createStateStyleEnum( org.openanzo.rdf.jastor.ThingFactory.valueFactory.createBNode(), _graph.getNamedGraphUri(), _dataset); _dataset.add(_resource, stateStyleProperty, stateStyle.resource(), _graph.getNamedGraphUri()); return stateStyle; }
public org.openanzo.ontologies.execution.StateStyleEnum setStateStyle( org.openanzo.rdf.Resource resource) throws org.openanzo.rdf.jastor.JastorException { if (_dataset.contains(_resource, stateStyleProperty, null, _graph.getNamedGraphUri())) { _dataset.remove(_resource, stateStyleProperty, null, _graph.getNamedGraphUri()); } org.openanzo.ontologies.execution.StateStyleEnum stateStyle = org.openanzo.ontologies.execution.SemanticServiceFactory.getStateStyleEnum( resource, _graph.getNamedGraphUri(), _dataset); _dataset.add(_resource, stateStyleProperty, stateStyle.resource(), _graph.getNamedGraphUri()); return stateStyle; }
public void setStateStyle(org.openanzo.ontologies.execution.StateStyleEnum stateStyle) throws org.openanzo.rdf.jastor.JastorException { _dataset.remove(_resource, stateStyleProperty, null, _graph.getNamedGraphUri()); if (stateStyle != null) { _dataset.add(_resource, stateStyleProperty, stateStyle.resource(), _graph.getNamedGraphUri()); } }