LinkageSchema Class Reference
Linkage Schema item description. More...
Public Member Functions | |
| __construct () | |
| __destruct () | |
| setVersion ($version) | |
| Set the value of the version. | |
| setLinkedType ($linkedType) | |
| Set the value of the linked type. | |
| setPrefix ($prefix, $uri) | |
| Set a prefix used in this schema. | |
| setPropertyX ($property, $mapTo, &$error) | |
| Map an attribute to an attribute of an external format/vocabulary/ontology. | |
| setTypeX ($type, $mapTo, $add, &$error) | |
| Map type to a type of an external format/vocabulary/ontology. | |
| generateJsonSerialization () | |
| Generates a JSON serialized file of this linkage schema. | |
Public Attributes | |
| $version | |
| Version of the linkage schema. | |
| $linkedType | |
| Mime type of the linkage schema (what type it links to). | |
| $prefixes | |
| List of prefixes used within the schema. | |
| $propertyX = array() | |
| List of atributes linked by the schema. | |
| $typeX = array() | |
| List of types linked by the schema. | |
Private Member Functions | |
| addProperty (&$property, $mapTo, &$error) | |
| addType (&$type, $mapTo, $add, &$error) | |
Detailed Description
Linkage Schema item description.
Definition at line 26 of file LinkageSchema.php.
Constructor & Destructor Documentation
| LinkageSchema::__construct | ( | ) |
Definition at line 43 of file LinkageSchema.php.
| LinkageSchema::__destruct | ( | ) |
Definition at line 45 of file LinkageSchema.php.
Member Function Documentation
| LinkageSchema::addProperty | ( | &$ | property, | |
| $ | mapTo, | |||
| &$ | error | |||
| ) | [private] |
| LinkageSchema::addType | ( | &$ | type, | |
| $ | mapTo, | |||
| $ | add, | |||
| &$ | error | |||
| ) | [private] |
| LinkageSchema::generateJsonSerialization | ( | ) |
Generates a JSON serialized file of this linkage schema.
Definition at line 271 of file LinkageSchema.php.
| LinkageSchema::setLinkedType | ( | $ | linkedType | ) |
Set the value of the linked type.
- Parameters:
-
[in] $linkedType Mime type of the language this schema links to (example: application/rdf+xml)
Definition at line 72 of file LinkageSchema.php.
References $linkedType.
| LinkageSchema::setPrefix | ( | $ | prefix, | |
| $ | uri | |||
| ) |
Set a prefix used in this schema.
- Parameters:
-
[in] $prefix Prefix to be used (example: "foaf:") [in] $uri Full URI we have to use to extend the prefix (ex: "http://xmlns.com/foaf/0.1/")
Definition at line 88 of file LinkageSchema.php.
References $uri.
| LinkageSchema::setPropertyX | ( | $ | property, | |
| $ | mapTo, | |||
| &$ | error | |||
| ) |
Map an attribute to an attribute of an external format/vocabulary/ontology.
- Parameters:
-
[in] $property Attribute we want to map to.. [in] $mapTo External attribute we want to map to in|out] $error Possible mapping errors
Definition at line 112 of file LinkageSchema.php.
References addProperty().

| LinkageSchema::setTypeX | ( | $ | type, | |
| $ | mapTo, | |||
| $ | add, | |||
| &$ | error | |||
| ) |
Map type to a type of an external format/vocabulary/ontology.
- Parameters:
-
[in] $type Type we want to map to.. [in] $mapTo External type we want to map to [in] $add Additional information that has to be part of the transformation process in|out] $error Possible mapping errors
Definition at line 128 of file LinkageSchema.php.
References $type, and addType().

| LinkageSchema::setVersion | ( | $ | version | ) |
Set the value of the version.
- Parameters:
-
[in] $version Version of the linkage schema
Definition at line 57 of file LinkageSchema.php.
References $version.
Member Data Documentation
| LinkageSchema::$linkedType |
Mime type of the linkage schema (what type it links to).
Definition at line 32 of file LinkageSchema.php.
Referenced by setLinkedType().
| LinkageSchema::$prefixes |
| LinkageSchema::$propertyX = array() |
| LinkageSchema::$typeX = array() |
| LinkageSchema::$version |
Version of the linkage schema.
Definition at line 29 of file LinkageSchema.php.
Referenced by setVersion().
The documentation for this class was generated from the following file:
