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 getScriptLocation(boolean includeEntireDataset)
     throws org.openanzo.rdf.jastor.JastorException {
   java.util.Collection<org.openanzo.rdf.Statement> result = null;
   result =
       _dataset.find(
           includeEntireDataset,
           _resource,
           scriptLocationProperty,
           null,
           _graph.getNamedGraphUri());
   if (result.isEmpty()) return null;
   org.openanzo.rdf.Statement statement = result.iterator().next();
   if (statement == null) return null;
   if (!((statement.getObject() instanceof org.openanzo.rdf.URI)
       || (statement.getObject() instanceof org.openanzo.rdf.BlankNode)))
     throw new org.openanzo.rdf.jastor.InvalidNodeException(
         uri()
             + ": scriptLocation getProperty() in org.openanzo.ontologies.execution.JavascriptSemanticService model not Resource",
         statement.getObject());
   org.openanzo.rdf.Resource resource = (org.openanzo.rdf.Resource) statement.getObject();
   return org.openanzo.rdf.jastor.ThingFactory.getThing(
       resource, (includeEntireDataset) ? null : _graph.getNamedGraphUri(), _dataset);
 }