/*******************************************************************************
* Copyright (c) 2004, 2007-2008 IBM Corporation and Cambridge Semantics Incorporated.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* File: $Source$
* Created by: Generated Source from org.openanzo.jdbc.utils.opgen.jet
* Created on: Generated Source from org.openanzo.jdbc.utils.opgen.jet
* Revision: $Id$
*
* Contributors:
* IBM Corporation - initial API and implementation
* Cambridge Semantics Incorporated - Fork to Anzo
*******************************************************************************/
package org.openanzo.ontologies.execution;
/**
* Factory for instantiating objects for ontology classes in the SemanticService ontology. The
* get methods leave the dataset unchanged and return a Java view of the object in the dataset. The create methods
* may add certain baseline properties to the dataset such as rdf:type and any properties with hasValue restrictions.
* <p>(URI: http://openanzo.org/ontologies/2008/07/SemanticService)</p>
* <br>
* RDF Schema Standard Properties <br>
* label : Semantic Service Execution <br>
* comment : Semantic Service Execution <br>
* <br>
* <br>
*/
public class SemanticServiceFactory extends org.openanzo.rdf.jastor.ThingFactory {
/**
*Determine if the given predicate is one of the properties for the given class
*@param predicate predicate to check
*@return true if the given predicate is one of the properties for the given class
*/
public static boolean isJavaSemanticServicePredicate(org.openanzo.rdf.URI predicate){
return
predicate.equals(JavaSemanticServiceImpl.serviceUserProperty) ||
predicate.equals(JavaSemanticServiceImpl.operationProperty) ||
predicate.equals(JavaSemanticServiceImpl.stateStyleProperty) ||
predicate.equals(JavaSemanticServiceImpl.serviceFactoryPidProperty) ;
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavaSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService createJavaSemanticService(org.openanzo.rdf.Resource resource,org.openanzo.rdf.URI _namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
JavaSemanticService result= org.openanzo.ontologies.execution.JavaSemanticServiceImpl.createJavaSemanticService(resource,_namedGraphUri,dataset);
return result;
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavaSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService createJavaSemanticService(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return createJavaSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavaSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService createJavaSemanticService(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createJavaSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavaSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService createJavaSemanticService(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createJavaSemanticService(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavaSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService createJavaSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return createJavaSemanticService(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavaSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService createJavaSemanticService(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createJavaSemanticService(resource, graph);
}
/**
* Create a new instance of JavaSemanticService. Leaves the dataset unchanged.
* @param resource The resource of the JavaSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService getJavaSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return org.openanzo.ontologies.execution.JavaSemanticServiceImpl.getJavaSemanticService(resource, _namedGraphUri,dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavaSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService getJavaSemanticService(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getJavaSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavaSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService getJavaSemanticService(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getJavaSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavaSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService getJavaSemanticService(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getJavaSemanticService(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavaSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService getJavaSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getJavaSemanticService(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of JavaSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavaSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavaSemanticService getJavaSemanticService(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getJavaSemanticService(resource, graph);
}
/**
* Return an instance of JavaSemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#JavaSemanticService
* @param _namedGraphUri the URI of the NamedGraph
* @param dataset the IDataset containing the data
* @return a List of JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<JavaSemanticService> getAllJavaSemanticService(org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
java.util.Collection<org.openanzo.rdf.Statement> result = dataset.find(null,org.openanzo.rdf.vocabulary.RDF.TYPE,JavaSemanticService.TYPE,_namedGraphUri);
java.util.List<JavaSemanticService> list = new java.util.ArrayList<JavaSemanticService>();
for(org.openanzo.rdf.Statement stmt :result){
org.openanzo.rdf.URI nguri = _namedGraphUri != null ? _namedGraphUri : (org.openanzo.rdf.URI)stmt.getSubject();
list.add(getJavaSemanticService(stmt.getSubject(),nguri,dataset));
}
return list;
}
/**
* Return an instance of JavaSemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#JavaSemanticService
* @param dataset the IDataset containing the data
* @return a List of JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<JavaSemanticService> getAllJavaSemanticService(org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getAllJavaSemanticService(null, dataset);
}
/**
* Return an instance of JavaSemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#JavaSemanticService
* @param graph the NamedGraph containing the data
* @return a List of JavaSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<JavaSemanticService> getAllJavaSemanticService(org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getAllJavaSemanticService(graph.getNamedGraphUri(), dataset);
}
/**
*Determine if the given predicate is one of the properties for the given class
*@param predicate predicate to check
*@return true if the given predicate is one of the properties for the given class
*/
public static boolean isJavascriptSemanticServicePredicate(org.openanzo.rdf.URI predicate){
return
predicate.equals(JavascriptSemanticServiceImpl.serviceUserProperty) ||
predicate.equals(JavascriptSemanticServiceImpl.operationProperty) ||
predicate.equals(JavascriptSemanticServiceImpl.stateStyleProperty) ||
predicate.equals(JavascriptSemanticServiceImpl.scriptResourceProperty) ||
predicate.equals(JavascriptSemanticServiceImpl.scriptLocationProperty) ;
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavascriptSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService createJavascriptSemanticService(org.openanzo.rdf.Resource resource,org.openanzo.rdf.URI _namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
JavascriptSemanticService result= org.openanzo.ontologies.execution.JavascriptSemanticServiceImpl.createJavascriptSemanticService(resource,_namedGraphUri,dataset);
return result;
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavascriptSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService createJavascriptSemanticService(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return createJavascriptSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavascriptSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService createJavascriptSemanticService(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createJavascriptSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavascriptSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService createJavascriptSemanticService(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createJavascriptSemanticService(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavascriptSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService createJavascriptSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return createJavascriptSemanticService(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavascriptSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService createJavascriptSemanticService(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createJavascriptSemanticService(resource, graph);
}
/**
* Create a new instance of JavascriptSemanticService. Leaves the dataset unchanged.
* @param resource The resource of the JavascriptSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService getJavascriptSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return org.openanzo.ontologies.execution.JavascriptSemanticServiceImpl.getJavascriptSemanticService(resource, _namedGraphUri,dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavascriptSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService getJavascriptSemanticService(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getJavascriptSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavascriptSemanticService
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService getJavascriptSemanticService(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getJavascriptSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavascriptSemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService getJavascriptSemanticService(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getJavascriptSemanticService(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the JavascriptSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService getJavascriptSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getJavascriptSemanticService(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of JavascriptSemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the JavascriptSemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static JavascriptSemanticService getJavascriptSemanticService(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getJavascriptSemanticService(resource, graph);
}
/**
* Return an instance of JavascriptSemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#JavascriptSemanticService
* @param _namedGraphUri the URI of the NamedGraph
* @param dataset the IDataset containing the data
* @return a List of JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<JavascriptSemanticService> getAllJavascriptSemanticService(org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
java.util.Collection<org.openanzo.rdf.Statement> result = dataset.find(null,org.openanzo.rdf.vocabulary.RDF.TYPE,JavascriptSemanticService.TYPE,_namedGraphUri);
java.util.List<JavascriptSemanticService> list = new java.util.ArrayList<JavascriptSemanticService>();
for(org.openanzo.rdf.Statement stmt :result){
org.openanzo.rdf.URI nguri = _namedGraphUri != null ? _namedGraphUri : (org.openanzo.rdf.URI)stmt.getSubject();
list.add(getJavascriptSemanticService(stmt.getSubject(),nguri,dataset));
}
return list;
}
/**
* Return an instance of JavascriptSemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#JavascriptSemanticService
* @param dataset the IDataset containing the data
* @return a List of JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<JavascriptSemanticService> getAllJavascriptSemanticService(org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getAllJavascriptSemanticService(null, dataset);
}
/**
* Return an instance of JavascriptSemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#JavascriptSemanticService
* @param graph the NamedGraph containing the data
* @return a List of JavascriptSemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<JavascriptSemanticService> getAllJavascriptSemanticService(org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getAllJavascriptSemanticService(graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticOperation
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation createSemanticOperation(org.openanzo.rdf.Resource resource,org.openanzo.rdf.URI _namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
SemanticOperation result= org.openanzo.ontologies.execution.SemanticOperationImpl.createSemanticOperation(resource,_namedGraphUri,dataset);
return result;
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticOperation
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation createSemanticOperation(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return createSemanticOperation(resource, resource, dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticOperation
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation createSemanticOperation(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createSemanticOperation(resource, resource, dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticOperation
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation createSemanticOperation(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createSemanticOperation(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticOperation
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation createSemanticOperation(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return createSemanticOperation(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticOperation
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation createSemanticOperation(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createSemanticOperation(resource, graph);
}
/**
* Create a new instance of SemanticOperation. Leaves the dataset unchanged.
* @param resource The resource of the SemanticOperation
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation getSemanticOperation(org.openanzo.rdf.Resource resource, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return org.openanzo.ontologies.execution.SemanticOperationImpl.getSemanticOperation(resource, _namedGraphUri,dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticOperation
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation getSemanticOperation(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getSemanticOperation(resource, resource, dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticOperation
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation getSemanticOperation(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getSemanticOperation(resource, resource, dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticOperation
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation getSemanticOperation(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getSemanticOperation(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticOperation
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation getSemanticOperation(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getSemanticOperation(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of SemanticOperation. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticOperation
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticOperation getSemanticOperation(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getSemanticOperation(resource, graph);
}
/**
* Return an instance of SemanticOperation for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#SemanticOperation
* @param _namedGraphUri the URI of the NamedGraph
* @param dataset the IDataset containing the data
* @return a List of SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<SemanticOperation> getAllSemanticOperation(org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
java.util.Collection<org.openanzo.rdf.Statement> result = dataset.find(null,org.openanzo.rdf.vocabulary.RDF.TYPE,SemanticOperation.TYPE,_namedGraphUri);
java.util.List<SemanticOperation> list = new java.util.ArrayList<SemanticOperation>();
for(org.openanzo.rdf.Statement stmt :result){
org.openanzo.rdf.URI nguri = _namedGraphUri != null ? _namedGraphUri : (org.openanzo.rdf.URI)stmt.getSubject();
list.add(getSemanticOperation(stmt.getSubject(),nguri,dataset));
}
return list;
}
/**
* Return an instance of SemanticOperation for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#SemanticOperation
* @param dataset the IDataset containing the data
* @return a List of SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<SemanticOperation> getAllSemanticOperation(org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getAllSemanticOperation(null, dataset);
}
/**
* Return an instance of SemanticOperation for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#SemanticOperation
* @param graph the NamedGraph containing the data
* @return a List of SemanticOperation
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<SemanticOperation> getAllSemanticOperation(org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getAllSemanticOperation(graph.getNamedGraphUri(), dataset);
}
/**
*Determine if the given predicate is one of the properties for the given class
*@param predicate predicate to check
*@return true if the given predicate is one of the properties for the given class
*/
public static boolean isSemanticServicePredicate(org.openanzo.rdf.URI predicate){
return
predicate.equals(SemanticServiceImpl.serviceUserProperty) ||
predicate.equals(SemanticServiceImpl.operationProperty) ||
predicate.equals(SemanticServiceImpl.stateStyleProperty) ;
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService createSemanticService(org.openanzo.rdf.Resource resource,org.openanzo.rdf.URI _namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
SemanticService result= org.openanzo.ontologies.execution.SemanticServiceImpl.createSemanticService(resource,_namedGraphUri,dataset);
return result;
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticService
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService createSemanticService(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return createSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticService
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService createSemanticService(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService createSemanticService(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createSemanticService(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService createSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return createSemanticService(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService createSemanticService(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createSemanticService(resource, graph);
}
/**
* Create a new instance of SemanticService. Leaves the dataset unchanged.
* @param resource The resource of the SemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService getSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return org.openanzo.ontologies.execution.SemanticServiceImpl.getSemanticService(resource, _namedGraphUri,dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticService
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService getSemanticService(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticService
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService getSemanticService(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getSemanticService(resource, resource, dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticService
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService getSemanticService(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getSemanticService(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the SemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService getSemanticService(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getSemanticService(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of SemanticService. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the SemanticService
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static SemanticService getSemanticService(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getSemanticService(resource, graph);
}
/**
* Return an instance of SemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#SemanticService
* @param _namedGraphUri the URI of the NamedGraph
* @param dataset the IDataset containing the data
* @return a List of SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<SemanticService> getAllSemanticService(org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
java.util.Collection<org.openanzo.rdf.Statement> result = dataset.find(null,org.openanzo.rdf.vocabulary.RDF.TYPE,SemanticService.TYPE,_namedGraphUri);
java.util.List<SemanticService> list = new java.util.ArrayList<SemanticService>();
for(org.openanzo.rdf.Statement stmt :result){
org.openanzo.rdf.URI nguri = _namedGraphUri != null ? _namedGraphUri : (org.openanzo.rdf.URI)stmt.getSubject();
list.add(getSemanticService(stmt.getSubject(),nguri,dataset));
}
return list;
}
/**
* Return an instance of SemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#SemanticService
* @param dataset the IDataset containing the data
* @return a List of SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<SemanticService> getAllSemanticService(org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getAllSemanticService(null, dataset);
}
/**
* Return an instance of SemanticService for every resource in the dataset with rdf:Type http://openanzo.org/ontologies/2008/07/SemanticService#SemanticService
* @param graph the NamedGraph containing the data
* @return a List of SemanticService
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<SemanticService> getAllSemanticService(org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getAllSemanticService(graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the StateStyleEnum
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum createStateStyleEnum(org.openanzo.rdf.Resource resource,org.openanzo.rdf.URI _namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
StateStyleEnum result= org.openanzo.ontologies.execution.StateStyleEnumImpl.createStateStyleEnum(resource,_namedGraphUri,dataset);
return result;
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the StateStyleEnum
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum createStateStyleEnum(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return createStateStyleEnum(resource, resource, dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the StateStyleEnum
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum createStateStyleEnum(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createStateStyleEnum(resource, resource, dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the StateStyleEnum
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum createStateStyleEnum(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createStateStyleEnum(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the StateStyleEnum
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum createStateStyleEnum(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return createStateStyleEnum(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the StateStyleEnum
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum createStateStyleEnum(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return createStateStyleEnum(resource, graph);
}
/**
* Create a new instance of StateStyleEnum. Leaves the dataset unchanged.
* @param resource The resource of the StateStyleEnum
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum getStateStyleEnum(org.openanzo.rdf.Resource resource, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return org.openanzo.ontologies.execution.StateStyleEnumImpl.getStateStyleEnum(resource, _namedGraphUri,dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the StateStyleEnum
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum getStateStyleEnum(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getStateStyleEnum(resource, resource, dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the StateStyleEnum
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum getStateStyleEnum(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getStateStyleEnum(resource, resource, dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the StateStyleEnum
* @param _namedGraphUri the URI of the NamedGraph within the dataset where this object is to be created
* @param dataset the IDataset containing the data
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum getStateStyleEnum(String uri, org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getStateStyleEnum(resource, _namedGraphUri, dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param resource The resource of the StateStyleEnum
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum getStateStyleEnum(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getStateStyleEnum(resource, graph.getNamedGraphUri(), dataset);
}
/**
* Create a new instance of StateStyleEnum. Adds the rdf:type property for the given resource to the dataset.
* @param uri The uri of the StateStyleEnum
* @param graph the NamedGraph within the dataset where this object is to be created
* @return the newly created StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static StateStyleEnum getStateStyleEnum(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getStateStyleEnum(resource, graph);
}
/**
* Return an instance of StateStyleEnum for every resource in the dataset with rdf:Type http://jastor.openanzo.org/gen#StateStyleEnum
* @param _namedGraphUri the URI of the NamedGraph
* @param dataset the IDataset containing the data
* @return a List of StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<StateStyleEnum> getAllStateStyleEnum(org.openanzo.rdf.URI _namedGraphUri,org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
java.util.Collection<org.openanzo.rdf.Statement> result = dataset.find(null,org.openanzo.rdf.vocabulary.RDF.TYPE,StateStyleEnum.TYPE,_namedGraphUri);
java.util.List<StateStyleEnum> list = new java.util.ArrayList<StateStyleEnum>();
for(org.openanzo.rdf.Statement stmt :result){
org.openanzo.rdf.URI nguri = _namedGraphUri != null ? _namedGraphUri : (org.openanzo.rdf.URI)stmt.getSubject();
list.add(getStateStyleEnum(stmt.getSubject(),nguri,dataset));
}
return list;
}
/**
* Return an instance of StateStyleEnum for every resource in the dataset with rdf:Type http://jastor.openanzo.org/gen#StateStyleEnum
* @param dataset the IDataset containing the data
* @return a List of StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<StateStyleEnum> getAllStateStyleEnum(org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getAllStateStyleEnum(null, dataset);
}
/**
* Return an instance of StateStyleEnum for every resource in the dataset with rdf:Type http://jastor.openanzo.org/gen#StateStyleEnum
* @param graph the NamedGraph containing the data
* @return a List of StateStyleEnum
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static java.util.List<StateStyleEnum> getAllStateStyleEnum(org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getAllStateStyleEnum(graph.getNamedGraphUri(), dataset);
}
/**
* Returns an instance of an interface for the given Resource. The return instance is guaranteed to
* implement the most specific interface in *some* hierarchy in which the Resource participates. The behavior
* is unspecified for resources with RDF types from different hierarchies.
* @return an instance of Thing
* @throws org.openanzo.rdf.jastor.JastorException
*/
public static org.openanzo.rdf.jastor.Thing getThing(org.openanzo.rdf.Resource resource, org.openanzo.rdf.URI namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
if (dataset.contains(resource,org.openanzo.rdf.vocabulary.RDF.TYPE, org.openanzo.rdf.MemURI.create("http://jastor.openanzo.org/gen#StateStyleEnum"), namedGraphUri)) {
return getStateStyleEnum(resource, namedGraphUri, dataset);
}
if (dataset.contains(resource,org.openanzo.rdf.vocabulary.RDF.TYPE, org.openanzo.rdf.MemURI.create("http://openanzo.org/ontologies/2008/07/SemanticService#SemanticOperation"), namedGraphUri)) {
return getSemanticOperation(resource, namedGraphUri, dataset);
}
if (dataset.contains(resource,org.openanzo.rdf.vocabulary.RDF.TYPE, org.openanzo.rdf.MemURI.create("http://openanzo.org/ontologies/2008/07/SemanticService#JavascriptSemanticService"), namedGraphUri)) {
return getJavascriptSemanticService(resource, namedGraphUri, dataset);
}
if (dataset.contains(resource,org.openanzo.rdf.vocabulary.RDF.TYPE, org.openanzo.rdf.MemURI.create("http://openanzo.org/ontologies/2008/07/SemanticService#JavaSemanticService"), namedGraphUri)) {
return getJavaSemanticService(resource, namedGraphUri, dataset);
}
if (dataset.contains(resource,org.openanzo.rdf.vocabulary.RDF.TYPE, org.openanzo.rdf.MemURI.create("http://openanzo.org/ontologies/2008/07/SemanticService#SemanticService"), namedGraphUri)) {
return getSemanticService(resource, namedGraphUri, dataset);
}
return new org.openanzo.rdf.jastor.ThingImpl(resource, namedGraphUri, dataset);
}
/*
public static org.openanzo.rdf.jastor.Thing getThing(org.openanzo.rdf.URI resource, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
return getThing(resource, resource, dataset);
}
public static org.openanzo.rdf.jastor.Thing getThing(String uri, org.openanzo.rdf.URI namedGraphUri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getThing(resource, namedGraphUri, dataset);
}
public static org.openanzo.rdf.jastor.Thing getThing(String uri, org.openanzo.rdf.IDataset dataset) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getThing(resource, dataset);
}
public static org.openanzo.rdf.jastor.Thing getThing(org.openanzo.rdf.Resource resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getThing(resource, graph.getNamedGraphUri(), dataset);
}
public static org.openanzo.rdf.jastor.Thing getThing(org.openanzo.rdf.URI resource, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.IDataset dataset = org.openanzo.rdf.jastor.SingletonDataset.getInstance(graph);
return getThing(resource, graph.getNamedGraphUri(), dataset);
}
public static org.openanzo.rdf.jastor.Thing getThing(String uri, org.openanzo.rdf.INamedGraph graph) throws org.openanzo.rdf.jastor.JastorException {
org.openanzo.rdf.URI resource=org.openanzo.rdf.jastor.ThingFactory.valueFactory.createURI(uri);
return getThing(resource, graph);
}
*/
/**
* Return a list of compatible interfaces for the given type. Searches through all ontology classes
* in the SemanticService ontology.
* @param type the type for which to find compatible interfaces
* @return a List of type java.lang.Class
*/
public static java.util.List<java.lang.Class<? extends org.openanzo.rdf.jastor.Thing>> listCompatibleInterfaces (org.openanzo.rdf.Resource type) {
java.util.List<java.lang.Class<? extends org.openanzo.rdf.jastor.Thing>> types = new java.util.ArrayList<java.lang.Class<? extends org.openanzo.rdf.jastor.Thing>>();
if (type.equals(org.openanzo.ontologies.execution.JavaSemanticService.TYPE)) {
types.add(org.openanzo.ontologies.execution.JavaSemanticService.class);
}
if (type.equals(org.openanzo.ontologies.execution.JavascriptSemanticService.TYPE)) {
types.add(org.openanzo.ontologies.execution.JavascriptSemanticService.class);
}
if (type.equals(org.openanzo.ontologies.execution.SemanticOperation.TYPE)) {
types.add(org.openanzo.ontologies.execution.SemanticOperation.class);
}
if (type.equals(org.openanzo.ontologies.execution.SemanticService.TYPE)) {
types.add(org.openanzo.ontologies.execution.SemanticService.class);
}
if (type.equals(org.openanzo.ontologies.execution.StateStyleEnum.TYPE)) {
types.add(org.openanzo.ontologies.execution.StateStyleEnum.class);
}
return types;
}
}