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. | |
Data Fields | |
| $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
| __construct | ( | ) |
Definition at line 43 of file LinkageSchema.php.
| __destruct | ( | ) |
Definition at line 45 of file LinkageSchema.php.
Member Function Documentation
| addProperty | ( | &$ | property, | |
| $ | mapTo, | |||
| &$ | error | |||
| ) | [private] |
Definition at line 130 of file LinkageSchema.php.
Referenced by setPropertyX().
| addType | ( | &$ | type, | |
| $ | mapTo, | |||
| $ | add, | |||
| &$ | error | |||
| ) | [private] |
| generateJsonSerialization | ( | ) |
Generates a JSON serialized file of this linkage schema.
Definition at line 271 of file LinkageSchema.php.
| 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.
| 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.
| 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 [out] $error Possible mapping errors
Definition at line 112 of file LinkageSchema.php.
References addProperty().

| 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().

| 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.
Field Documentation
| $linkedType |
Mime type of the linkage schema (what type it links to).
Definition at line 32 of file LinkageSchema.php.
Referenced by setLinkedType().
| $prefixes |
List of prefixes used within the schema.
Definition at line 35 of file LinkageSchema.php.
| $propertyX = array() |
List of atributes linked by the schema.
Definition at line 38 of file LinkageSchema.php.
| $typeX = array() |
List of types linked by the schema.
Definition at line 41 of file LinkageSchema.php.
| $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:
