Login   Register  
PHP Classes
elePHPant
Icontem

File: rdfapi/Constants.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chris Bizer  >  RDF API  >  rdfapi/Constants.php  >  Download  
File: rdfapi/Constants.php
Role: Configuration script
Content type: text/plain
Description: Constants and default configuration.
Class: RDF API
Package for manipulating RDF models.
Author: By
Last change:
Date: 2002-10-04 09:17
Size: 4,644 bytes
 

Contents

Class file image Download
<?php
// ----------------------------------------------------------------------------------
// Constants
// ----------------------------------------------------------------------------------
// Version                   : 0.1 
// Author                    : Chris Bizer (chris@bizer.de)
// Description               : Constants and default configuration
// ----------------------------------------------------------------------------------
// History: 
// 10-03-2002                 : Added some RDF Shema constants
// 09-15-2002                 : Version 0.1
// ----------------------------------------------------------------------------------

// ----------------------------------------------------------------------------------
// General
// ----------------------------------------------------------------------------------

define("RDFAPI_ERROR""RDFAPI error ");
define("DEFAULT_ALGORITHM""MD5");
define("DEFAULT_ENCODING""UTF-8");
define("INDENTATION""   ");
define("LINEFEED"chr(10));

// ----------------------------------------------------------------------------------
// Model
// ----------------------------------------------------------------------------------

define(BNODE_PREFIX"bNode");

// ----------------------------------------------------------------------------------
// Parser
// ----------------------------------------------------------------------------------

define("NAMESPACE_SEPARATOR_CHAR",'^');
define("NAMESPACE_SEPARATOR_STRING","^");
define("IN_TOP_LEVEL",0);
define("IN_RDF",1);
define("IN_DESCRIPTION",2);
define("IN_PROPERTY_UNKNOWN_OBJECT",3);
define("IN_PROPERTY_RESOURCE",4);
define("IN_PROPERTY_EMPTY_RESOURCE",5);
define("IN_PROPERTY_LITERAL",6);
define("IN_PROPERTY_PARSE_TYPE_LITERAL",7);
define("IN_PROPERTY_PARSE_TYPE_RESOURCE",8);
define("IN_XML",9);
define("IN_UNKNOWN",10);
//define("IN_PROPERTY_PARSE_TYPE_LITERAL",9);
define("RDF_SUBJECT_TYPE_URI",0);
define("RDF_SUBJECT_TYPE_DISTRIBUTED",1);
define("RDF_SUBJECT_TYPE_PREFIX",2);
define("RDF_SUBJECT_TYPE_ANONYMOUS",3);
define("RDF_OBJECT_TYPE_RESOURCE",0);
define("RDF_OBJECT_TYPE_LITERAL",1);
define("RDF_OBJECT_TYPE_XML",2);

// ----------------------------------------------------------------------------------
// Serializer
// ----------------------------------------------------------------------------------

define("SER_USE_ENTITIES"FALSE );
define("SER_USE_ATTRIBUTES"FALSE );
define("SER_SORT_MODEL"TRUE );
define("SER_RDF_QNAMES"TRUE );
define("SER_XML_DECLARATION"TRUE );

define("GENERAL_PREFIX_BASE","ns");
define("MAX_ALLOWED_ABBREVIATED_LENGTH",60);
define(USE_ANY_QUOTE0);
define(USE_CDATA1);

// ----------------------------------------------------------------------------------
// Util
// ----------------------------------------------------------------------------------

define("HTML_TABLE_HEADER_COLOR""#FFFFFF");
define("HTML_TABLE_RESOURCE_COLOR""#FFFFCC");
define("HTML_TABLE_LITERAL_COLOR""#E7E7EF");
define("HTML_TABLE_BNODE_COLOR""#FFCCFF");
define("HTML_TABLE_RDF_NS_COLOR""#CCFFCC");

// ----------------------------------------------------------------------------------
// RDF
// ----------------------------------------------------------------------------------

define("RDF_NAMESPACE_URI","http://www.w3.org/1999/02/22-rdf-syntax-ns#" );
define("RDF_NAMESPACE_PREFIX","rdf" );
define("RDF_SCHEMA_URI","http://www.w3.org/2000/01/rdf-schema#" );
define("RDF_SCHEMA_PREFIX""rdfs");

define("RDF_RDF","RDF");
define("RDF_DESCRIPTION","Description");
define("RDF_ID","ID");
define("RDF_ABOUT","about");
define("RDF_ABOUT_EACH","aboutEach");
define("RDF_ABOUT_EACH_PREFIX","aboutEachPrefix");
define("RDF_BAG_ID","bagID");
define("RDF_RESOURCE","resource");
define("RDF_VALUE","value");
define("RDF_PARSE_TYPE","parseType");
define("RDF_PARSE_TYPE_LITERAL","Literal");
define("RDF_PARSE_TYPE_RESOURCE","Resource");
define("RDF_TYPE","type");
define("RDF_BAG","Bag");
define("RDF_SEQ","Seq");
define("RDF_ALT","Alt");
define("RDF_LI","li");
define("RDF_STATEMENT","Statement");
define("RDF_SUBJECT","subject");
define("RDF_PREDICATE","predicate");
define("RDF_OBJECT","object");

// ----------------------------------------------------------------------------------
// XML
// ----------------------------------------------------------------------------------

define("XML_NAMESPACE_PREFIX""xml");
define("XML_NAMESPACE_DECLARATION_PREFIX""xmlns:");
define("XML_NAMESPACE_URI","http://www.w3.org/XML/1998/namespace" );
define("XML_LANG","lang");

?>