~ubuntu-branches/ubuntu/breezy/redland-bindings/breezy

« back to all changes in this revision

Viewing changes to ruby/lib/rdf/redland/constants.rb

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2005-06-21 12:56:49 UTC
  • mfrom: (1.1.1 upstream) (0.1.2 sarge)
  • Revision ID: james.westby@ubuntu.com-20050621125649-1uwxez1hdyzw6vzd
Tags: 1.0.2.1-1ubuntu1
* Resynchronise with Debian.

* Fix FTBFS: Add python2.4-dev Build-Dep.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'rdf/redland'
 
2
 
 
3
module Redland
 
4
 
 
5
RDFNS = Redland::Namespace.new("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
 
6
 
 
7
# Syntax names
 
8
RDF = RDFNS["RDF"]
 
9
DESCRIPTION = RDFNS["Description"]
 
10
ID = RDFNS["ID"]
 
11
ABOUT = RDFNS["about"]
 
12
BAG_ID = RDFNS["bagID"]
 
13
PARSE_TYPE = RDFNS["parseType"]
 
14
RESOURCE = RDFNS["resource"]
 
15
LI = RDFNS["li"]
 
16
NODE_ID = RDFNS["nodeID"]
 
17
DATATYPE = RDFNS["datatype"]
 
18
 
 
19
# RDF Classes
 
20
SEQ = RDFNS["Seq"]
 
21
BAG = RDFNS["Bag"]
 
22
ALT = RDFNS["Alt"]
 
23
STATEMENT = RDFNS["Statement"]
 
24
PROPERTY = RDFNS["Property"]
 
25
XMLLiteral = RDFNS["XMLLiteral"]
 
26
LIST = RDFNS["List"]
 
27
 
 
28
# RDF Properties
 
29
SUBJECT = RDFNS["subject"]
 
30
PREDICATE = RDFNS["predicate"]
 
31
OBJECT = RDFNS["object"]
 
32
TYPE = RDFNS["type"]
 
33
VALUE = RDFNS["value"]
 
34
FIRST = RDFNS["first"]
 
35
REST = RDFNS["rest"]
 
36
# and _n where n is a non-negative integer
 
37
 
 
38
# RDF Resources
 
39
 
 
40
# http://www.w3.org/TR/rdf-syntax-grammar/#eventterm-attribute-URI
 
41
# A mapping from unqualified terms to there qualified version.
 
42
 
 
43
 
 
44
# http://www.w3.org/TR/rdf-syntax-grammar/#coreSyntaxTerms
 
45
CORE_SYNTAX_TERMS = [RDF, ID, ABOUT, BAG_ID, PARSE_TYPE, RESOURCE, NODE_ID, DATATYPE]
 
46
 
 
47
# http://www.w3.org/TR/rdf-syntax-grammar/#syntaxTerms
 
48
SYNTAX_TERMS = CORE_SYNTAX_TERMS + [DESCRIPTION, LI]
 
49
 
 
50
# http://www.w3.org/TR/rdf-syntax-grammar/#oldTerms
 
51
 
 
52
 
 
53
end