model
[ class tree: model ] [ index: model ] [ all elements ]

Class: RDF_Model

Source Location: /RDF-0.2.0/RDF/Model.php

Class Overview

RDF_Object
   |
   --RDF_Model

A model is a programming interface to an RDF graph.


Author(s):

Version:

  • V0.7

Variables

Methods


Child classes:

RDF_Model_Memory
A model is a programming interface to an RDF graph.
RDF_Model_MDB
A model is a programming interface to an RDF graph.

Inherited Variables

Inherited Methods

Class: RDF_Object

RDF_Object::factory()
RDF_Object::toString()
Serializes a object into a string

Class Details

[line 18]
A model is a programming interface to an RDF graph.

An RDF graph is a directed labeled graph, as described in http://www.w3.org/TR/rdf-mt/. It can be defined as a set of <S, P, O> triples, where P is a uriref, S is either a uriref or a blank node, and O is either a uriref, a blank node, or a literal.



[ Top ]


Class Variables

$baseURI =

[line 27]

Base URI of the Model.

Affects creating of new resources and serialization syntax.

  • Access: protected

Type:   string


[ Top ]



Method Detail

getBaseURI   [line 35]

string getBaseURI( )

Return current baseURI.
  • Access: public

[ Top ]

load   [line 50]

void load( string $filename, [string $type = null])

Load a model from a file containing RDF, N3 or N-Triples.

This function recognizes the suffix of the filename (.n3 or .rdf) and calls a suitable parser, if no $type is given as string ("rdf" "n3" "nt"); If the model is not empty, the contents of the file is added to this Model_MDB.

  • Access: public

Parameters:

string   $filename   — 
string   $type   — 

[ Top ]

_addStatementFromAnotherModel   [line 90]

void _addStatementFromAnotherModel( RDF_Object $statement, &$blankNodes_tmp)

Adds a statement from another model to this model.

If the statement to be added contains a blankNode with an identifier already existing in this model, a new blankNode is generated.

  • Access: protected

Parameters:

RDF_Object   $statement   —  Statement $statement
   &$blankNodes_tmp   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.