My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FieldPredicateMap  
Represents a field/predicate map
Autogenerated
Updated Jan 13, 2010 by innovat...@gmail.com

note: this page is automatically generated from embedded documentation in the PHP source.

Overview

See:
http://n2.talis.com/wiki/Field_Predicate_Map

Constructors

Methods

  • add_mapping - Add a mapping between a predicate URI and a short name.
  • copy_to - Copies the mappings and other properties into new field/predicate map.
  • remove_mapping - Remove a mapping between a predicate URI and a short name.

Methods inherited from Moriarty.NetworkResource

Methods inherited from Moriarty.SimpleGraph

Constructor Detail

FieldPredicateMap

public FieldPredicateMap(mixed uri, mixed credentials)

Create a new instance of this class

Param:
string uri URI of the field/predicate map
Credentials credentials the credentials to use for authenticated requests (optional)

Method Detail

add_mapping

public void add_mapping(mixed p, mixed name, mixed analyzer)

Add a mapping between a predicate URI and a short name. Returns the URI of the new mapping.

Param:
string p the URI of the predicate to map
string name the short name to assign to the predicate
string analyzer the URI of the analyzer to apply to this predicate (optional)
Return:
string

copy_to

public void copy_to(mixed new_uri)

Copies the mappings and other properties into new field/predicate map. Any URIs that are prefixed by the source field/predicate map's URI will be converted to be prefixed with this field/predicate map's URI

For example

http://example.org/source/fpmaps/1#name

Would become

http://example.org/destination/fpmaps/1#name

Return:
FieldPredicateMap
Author:
Ian Davis

remove_mapping

public void remove_mapping(mixed p, mixed name)

Remove a mapping between a predicate URI and a short name.

Param:
string p the URI of the predicate being mapped
string name the short name assigned to the predicate

Generated by PHPDoctor 2RC2


Sign in to add a comment
Powered by Google Project Hosting