LinkageSchema Class Reference

Linkage Schema item description. More...

List of all members.

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.


Author:
Frederick Giasson, Structured Dynamics LLC.



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]

Definition at line 130 of file LinkageSchema.php.

Referenced by setPropertyX().

LinkageSchema::addType ( &$  type,
mapTo,
add,
&$  error 
) [private]

Definition at line 175 of file LinkageSchema.php.

References $type.

Referenced by setTypeX().

LinkageSchema::generateJsonSerialization (  ) 

Generates a JSON serialized file of this linkage schema.


Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 271 of file LinkageSchema.php.

References $type, and $uri.

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)
Author:
Frederick Giasson, Structured Dynamics LLC.



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/")
Author:
Frederick Giasson, Structured Dynamics LLC.



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
Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 112 of file LinkageSchema.php.

References addProperty().

Here is the call graph for this function:

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
Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 128 of file LinkageSchema.php.

References $type, and addType().

Here is the call graph for this function:

LinkageSchema::setVersion ( version  ) 

Set the value of the version.


Parameters:
[in] $version Version of the linkage schema
Author:
Frederick Giasson, Structured Dynamics LLC.



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

List of prefixes used within the schema.

Definition at line 35 of file LinkageSchema.php.

LinkageSchema::$propertyX = array()

List of atributes linked by the schema.

Definition at line 38 of file LinkageSchema.php.

LinkageSchema::$typeX = array()

List of types linked by the schema.

Definition at line 41 of file LinkageSchema.php.

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:
Copyright © 2009. Structured Dynamics LLC Structured Dynamics LLC. All rights reserved.