Open Semantic Framework PHP API  3.0
 All Data Structures Namespaces Files Functions Variables Pages
CreateOrUpdateEntityFunction Class Reference

Class used to define the parameters to use send a "createOrUpdateEntity" call to the Ontology: Update web service endpoint. More...

Inheritance diagram for CreateOrUpdateEntityFunction:

Public Member Functions

 __construct ()
 
 document ($document)
 A version of the RDF document describing the entity (class, property or named individual) to create or update in the ontology. More...
 
 enableAdvancedIndexation ()
 Enable advanced indexation of the ontology. More...
 
 disableAdvancedIndexation ()
 Disable advanced indexation of the ontology. More...
 

Detailed Description

Class used to define the parameters to use send a "createOrUpdateEntity" call to the Ontology: Update web service endpoint.

See also
http://wiki.opensemanticframework.org/index.php/Ontology_Update#createOrUpdateEntity
Author
Frederick Giasson, Structured Dynamics LLC.

Definition at line 20 of file CreateOrUpdateEntityFunction.php.

Constructor & Destructor Documentation

__construct ( )

Definition at line 22 of file CreateOrUpdateEntityFunction.php.

Member Function Documentation

disableAdvancedIndexation ( )

Disable advanced indexation of the ontology.

This means that the ontologies will be queriable via the Ontology Read, Ontology Update and Ontology Delete web service endpoints only

This is the default behavior of this service.

See also
http://wiki.opensemanticframework.org/index.php/Ontology_Update#createOrUpdateEntity
Author
Frederick Giasson, Structured Dynamics LLC.

Definition at line 76 of file CreateOrUpdateEntityFunction.php.

document (   $document)

A version of the RDF document describing the entity (class, property or named individual) to create or update in the ontology.

Required: This function must be called before sending the query

Parameters
mixed$documentRDF document serialized in XML or N3
See also
http://wiki.opensemanticframework.org/index.php/Ontology_Update#createOrUpdateEntity
Author
Frederick Giasson, Structured Dynamics LLC.

Definition at line 40 of file CreateOrUpdateEntityFunction.php.

enableAdvancedIndexation ( )

Enable advanced indexation of the ontology.

This means that the ontology's description (so all the classes, properties and named individuals) will be indexed in the other data management system in OSF. This means that all the information in these ontologies will be accessible via the other endpoints such as the Search and the SPARQL web service endpoints. Enabling this option may render the creation process slower depending on the size of the created ontology.

See also
http://wiki.opensemanticframework.org/index.php/Ontology_Update#createOrUpdateEntity
Author
Frederick Giasson, Structured Dynamics LLC.

Definition at line 59 of file CreateOrUpdateEntityFunction.php.