Community Documentation

RDF API functions

Last updated February 17, 2008. Created by Arto on February 10, 2008.
Log in to edit this page.

Statement-centric queries

rdf_exists($subject[, $predicate, $object, $options])
Determines whether a given statement exists.
rdf_count($subject[, $predicate, $object, $options])
Returns the number of matching statements.
rdf_query($subject[, $predicate, $object, $options])
Finds all statements matching a given triple pattern.

Statement-centric operations

rdf_insert_all($statements[, $options])
Inserts multiple new statements.
rdf_insert($subject[, $predicate, $object, $options])
Inserts a new statement.
rdf_delete_all($statements[, $options])
Deletes multiple existing statements.
rdf_delete($subject[, $predicate, $object, $options])
Deletes an existing statement.

RDF/PHP normalization

rdf_normalize()
rdf_denormalize()

RDF/PHP serialization

rdf_serialize()
rdf_unserialize()

URIs, blank nodes and literals

rdf_triple()
rdf_uriref()
rdf_bnode()
rdf_datetime()
rdf_literal()

Helper functions

rdf_is_local_uri()
rdf_is_valid_uri()
rdf_is_valid_curie()
rdf_is_valid_qname()
rdf_get_uuid()
rdf_get_datatype()

Miscellaneous

rdf_get_formats()
rdf_get_repositories()
rdf_get_namespaces()
rdf_get_contexts()

Repository selection

rdf_use_repository([$name])
Limits future queries and operations to a particular repository.

Vocabulary definition

rdf_define_vocabulary($class_name, $base_uri, $properties)
Defines an RDF vocabulary class for predicate URI construction based on a given base URI and a set of properties.

About this page

Drupal version
Drupal 6.x

Develop for Drupal

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here