org.openanzo.common.ontology
Interface Precondition

All Superinterfaces:
CoreThing, GraphThing
All Known Implementing Classes:
PreconditionImpl

public interface Precondition
extends GraphThing

Interface for Precondition ontology class
Use the org.openanzo.common.ontology.AnzoFactory to create instances of this interface.

(URI: http://openanzo.org/types/Precondition)


RDF Schema Standard Properties
comment : A precondition for a command



Field Summary
static org.openrdf.model.URI datasetProperty
          The Anzo Property for dataset
static org.openrdf.model.URI queryProperty
          The Anzo Property for query
static org.openrdf.model.URI resultProperty
          The Anzo Property for result
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
 
Method Summary
 Dataset getDataset()
          Gets the 'dataset' property value
 Query getQuery()
          Gets the 'query' property value
 Result getResult()
          Gets the 'result' property value
 Dataset setDataset()
          Sets the 'dataset' property value to an anonymous node
 void setDataset(Dataset dataset)
          Sets the 'dataset' property value
 Dataset setDataset(org.openrdf.model.Resource resource)
          Sets the 'dataset' property value to the given resource, and add's rdf:type properties.
 Query setQuery()
          Sets the 'query' property value to an anonymous node
 void setQuery(Query query)
          Sets the 'query' property value
 Query setQuery(org.openrdf.model.Resource resource)
          Sets the 'query' property value to the given resource, and add's rdf:type properties.
 Result setResult()
          Sets the 'result' property value to an anonymous node
 Result setResult(org.openrdf.model.Resource resource)
          Sets the 'result' property value to the given resource, and add's rdf:type properties.
 void setResult(Result result)
          Sets the 'result' property value
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

static final org.openrdf.model.URI TYPE
The rdf:type for this ontology class


datasetProperty

static final org.openrdf.model.URI datasetProperty
The Anzo Property for dataset

(URI: http://openanzo.org/predicates/dataset)



queryProperty

static final org.openrdf.model.URI queryProperty
The Anzo Property for query

(URI: http://openanzo.org/predicates/query)



resultProperty

static final org.openrdf.model.URI resultProperty
The Anzo Property for result

(URI: http://openanzo.org/predicates/result)


Method Detail

getDataset

Dataset getDataset()
                   throws JastorException
Gets the 'dataset' property value

Returns:
Dataset
Throws:
JastorException
See Also:
datasetProperty

setDataset

void setDataset(Dataset dataset)
                throws JastorException
Sets the 'dataset' property value

Parameters:
dataset - Dataset
Throws:
JastorException
See Also:
datasetProperty

setDataset

Dataset setDataset()
                   throws JastorException
Sets the 'dataset' property value to an anonymous node

Returns:
Dataset, the created value
Throws:
JastorException
See Also:
datasetProperty

setDataset

Dataset setDataset(org.openrdf.model.Resource resource)
                   throws JastorException
Sets the 'dataset' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Dataset with the factory. and calling setDataset(org.openanzo.common.ontology.Dataset dataset) The resource argument have rdf:type http://openanzo.org/types/Dataset. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - Resource must not be be null.
Returns:
Dataset, the newly created value
Throws:
JastorException
See Also:
datasetProperty

getQuery

Query getQuery()
               throws JastorException
Gets the 'query' property value

Returns:
Query
Throws:
JastorException
See Also:
queryProperty

setQuery

void setQuery(Query query)
              throws JastorException
Sets the 'query' property value

Parameters:
query - Query
Throws:
JastorException
See Also:
queryProperty

setQuery

Query setQuery()
               throws JastorException
Sets the 'query' property value to an anonymous node

Returns:
Query, the created value
Throws:
JastorException
See Also:
queryProperty

setQuery

Query setQuery(org.openrdf.model.Resource resource)
               throws JastorException
Sets the 'query' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Query with the factory. and calling setQuery(org.openanzo.common.ontology.Query query) The resource argument have rdf:type http://openanzo.org/types/Query. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - Resource must not be be null.
Returns:
Query, the newly created value
Throws:
JastorException
See Also:
queryProperty

getResult

Result getResult()
                 throws JastorException
Gets the 'result' property value

Returns:
Result
Throws:
JastorException
See Also:
resultProperty

setResult

void setResult(Result result)
               throws JastorException
Sets the 'result' property value

Parameters:
result - Result
Throws:
JastorException
See Also:
resultProperty

setResult

Result setResult()
                 throws JastorException
Sets the 'result' property value to an anonymous node

Returns:
Result, the created value
Throws:
JastorException
See Also:
resultProperty

setResult

Result setResult(org.openrdf.model.Resource resource)
                 throws JastorException
Sets the 'result' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Result with the factory. and calling setResult(org.openanzo.common.ontology.Result result) The resource argument have rdf:type http://openanzo.org/types/Result. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - Resource must not be be null.
Returns:
Result, the newly created value
Throws:
JastorException
See Also:
resultProperty


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.