public void setScriptLocation(org.openanzo.rdf.jastor.Thing scriptLocation) throws org.openanzo.rdf.jastor.JastorException { _dataset.remove(_resource, scriptLocationProperty, null, _graph.getNamedGraphUri()); if (scriptLocation != null) { _dataset.add( _resource, scriptLocationProperty, scriptLocation.resource(), _graph.getNamedGraphUri()); } }
public org.openanzo.rdf.jastor.Thing setScriptLocation(org.openanzo.rdf.Resource resource) throws org.openanzo.rdf.jastor.JastorException { if (_dataset.contains(_resource, scriptLocationProperty, null, _graph.getNamedGraphUri())) { _dataset.remove(_resource, scriptLocationProperty, null, _graph.getNamedGraphUri()); } org.openanzo.rdf.jastor.Thing scriptLocation = org.openanzo.rdf.jastor.ThingFactory.getThing( resource, _graph.getNamedGraphUri(), _dataset); _dataset.add( _resource, scriptLocationProperty, scriptLocation.resource(), _graph.getNamedGraphUri()); return scriptLocation; }
public org.openanzo.rdf.jastor.Thing setScriptLocation() throws org.openanzo.rdf.jastor.JastorException { _dataset.remove(_resource, scriptLocationProperty, null, _graph.getNamedGraphUri()); org.openanzo.rdf.jastor.Thing scriptLocation = org.openanzo.rdf.jastor.ThingFactory.createThing( org.openanzo.rdf.jastor.ThingFactory.valueFactory.createBNode(), _graph.getNamedGraphUri(), _dataset); _dataset.add( _resource, scriptLocationProperty, scriptLocation.resource(), _graph.getNamedGraphUri()); return scriptLocation; }