Core/Constants.pm

filter: Statementstmt 100% 154 / 154 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 49 / 49 Podpod n/a totaltotal 100% 203 / 203 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Core/Storage/DB_File.pm ↑ Summary
1 #
2 # The contents of this file are subject to the Mozilla Public
3 # License Version 1.1 (the "License"); you may not use this file
4 # except in compliance with the License. You may obtain a copy of
5 # the License at http://www.mozilla.org/MPL/
6 #
7 # Software distributed under the License is distributed on an "AS
8 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 # implied. See the License for the specific language governing
10 # rights and limitations under the License.
11 #
12 # The Original Code is the RDF::Core module
13 #
14 # The Initial Developer of the Original Code is Ginger Alliance Ltd.
15 # Portions created by Ginger Alliance are
16 # Copyright (C) 2001 Ginger Alliance Ltd.
17 # All Rights Reserved.
18 #
19 # Contributor(s):
20 #
21 # Alternatively, the contents of this file may be used under the
22 # terms of the GNU General Public License Version 2 or later (the
23 # "GPL"), in which case the provisions of the GPL are applicable
24 # instead of those above. If you wish to allow use of your
25 # version of this file only under the terms of the GPL and not to
26 # allow others to use your version of this file under the MPL,
27 # indicate your decision by deleting the provisions above and
28 # replace them with the notice and other provisions required by
29 # the GPL. If you do not delete the provisions above, a recipient
30 # may use your version of this file under either the MPL or the
31 # GPL.
32 #
33  
34 package RDF::Core::Constants;
35  
36 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 2 ▶use vars qw(%EXPORT_TAGS @ISA @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
39 2 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 2 @ISA = qw (Exporter);
42  
43 ########################################
44 # export stuff
45 2 my @XML_EXP = qw (XML_NS XMLA_LANG XMLA_BASE);
46  
47 2 my @RDF_EXP = qw (RDF_NS RDF_RDF RDF_DESCRIPTION RDF_BAG RDF_ALT RDF_SEQ
48 RDF_LI RDF_TYPE RDF_OBJECT RDF_SUBJECT RDF_PREDICATE
49 RDF_STATEMENT RDF_PROPERTY RDF_LIST RDF_FIRST RDF_REST
50 RDF_NIL RDFA_ABOUT RDFA_ABOUTEACH RDFA_ID RDFA_NODEID
51 RDFA_BAGID RDFA_RESOURCE RDFA_PARSETYPE RDFA_TYPE
52 RDFA_DATATYPE RDF_XMLLITERAL);
53  
54  
55 2 my @RDFS_EXP = qw(RDFS_NS RDFS_RESOURCE RDFS_CLASS RDFS_LITERAL RDFS_CONTAINER
56 RDFS_CONTAINER_MEMBER RDFS_IS_DEFINED_BY RDFS_MEMBER
57 RDFS_SUBCLASS_OF RDFS_SUBPROPERTY_OF RDFS_COMMENT RDFS_LABEL
58 RDFS_DOMAIN RDFS_RANGE RDFS_SEE_ALSO);
59  
60 2 %EXPORT_TAGS = (xml => \@XML_EXP,
61 rdf => \@RDF_EXP,
62 rdfs => \@RDFS_EXP);
63  
64 2 @EXPORT_OK = (@XML_EXP, @RDF_EXP, @RDFS_EXP);
65  
66 ########################################
67 # XML
68 2 ▶use constant XML_NS => 'http://www.w3.org/XML/1998/namespace';
Subroutine BEGIN: called CC=1 SCAR=0.0
69 2 ▶use constant XMLA_LANG => XML_NS . 'lang';
Subroutine BEGIN: called CC=1 SCAR=0.0
70 2 ▶use constant XMLA_BASE => XML_NS . 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
71  
72 ########################################
73 # RDF
74 2 ▶use constant RDF_NS => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
Subroutine BEGIN: called CC=1 SCAR=0.0
75 2 ▶use constant RDF_RDF => RDF_NS . 'RDF';
Subroutine BEGIN: called CC=1 SCAR=0.0
76 2 ▶use constant RDF_DESCRIPTION => RDF_NS . 'Description';
Subroutine BEGIN: called CC=1 SCAR=0.0
77 2 ▶use constant RDF_BAG => RDF_NS . 'Bag';
Subroutine BEGIN: called CC=1 SCAR=0.0
78 2 ▶use constant RDF_ALT => RDF_NS . 'Alt';
Subroutine BEGIN: called CC=1 SCAR=0.0
79 2 ▶use constant RDF_SEQ => RDF_NS . 'Seq';
Subroutine BEGIN: called CC=1 SCAR=0.0
80 2 ▶use constant RDF_LI => RDF_NS . 'li';
Subroutine BEGIN: called CC=1 SCAR=0.0
81 2 ▶use constant RDF_TYPE => RDF_NS . 'type';
Subroutine BEGIN: called CC=1 SCAR=0.0
82 2 ▶use constant RDF_OBJECT => RDF_NS . 'object';
Subroutine BEGIN: called CC=1 SCAR=0.0
83 2 ▶use constant RDF_SUBJECT => RDF_NS . 'subject';
Subroutine BEGIN: called CC=1 SCAR=0.0
84 2 ▶use constant RDF_PREDICATE => RDF_NS . 'predicate';
Subroutine BEGIN: called CC=1 SCAR=0.0
85 2 ▶use constant RDF_STATEMENT => RDF_NS . 'Statement';
Subroutine BEGIN: called CC=1 SCAR=0.0
86 2 ▶use constant RDF_PROPERTY => RDF_NS . 'Property';
Subroutine BEGIN: called CC=1 SCAR=0.0
87 2 ▶use constant RDF_LIST => RDF_NS . 'List';
Subroutine BEGIN: called CC=1 SCAR=0.0
88 2 ▶use constant RDF_FIRST => RDF_NS . 'first';
Subroutine BEGIN: called CC=1 SCAR=0.0
89 2 ▶use constant RDF_REST => RDF_NS . 'rest';
Subroutine BEGIN: called CC=1 SCAR=0.0
90 2 ▶use constant RDF_NIL => RDF_NS . 'nil';
Subroutine BEGIN: called CC=1 SCAR=0.0
91 2 ▶use constant RDF_VALUE => RDF_NS . 'value';
Subroutine BEGIN: called CC=1 SCAR=0.0
92 2 ▶use constant RDF_XMLLITERAL => RDF_NS . 'XMLLiteral';
Subroutine BEGIN: called CC=1 SCAR=0.0
93  
94 ########################################
95 # RDF attributes
96 2 ▶use constant RDFA_ABOUT => RDF_NS . 'about';
Subroutine BEGIN: called CC=1 SCAR=0.0
97 2 ▶use constant RDFA_ABOUTEACH => RDF_NS . 'aboutEach';
Subroutine BEGIN: called CC=1 SCAR=0.0
98 2 ▶use constant RDFA_ID => RDF_NS . 'ID';
Subroutine BEGIN: called CC=1 SCAR=0.0
99 2 ▶use constant RDFA_NODEID => RDF_NS . 'nodeID';
Subroutine BEGIN: called CC=1 SCAR=0.0
100 2 ▶use constant RDFA_BAGID => RDF_NS . 'bagID';
Subroutine BEGIN: called CC=1 SCAR=0.0
101 2 ▶use constant RDFA_RESOURCE => RDF_NS . 'resource';
Subroutine BEGIN: called CC=1 SCAR=0.0
102 2 ▶use constant RDFA_PARSETYPE => RDF_NS . 'parseType';
Subroutine BEGIN: called CC=1 SCAR=0.0
103 2 ▶use constant RDFA_TYPE => RDF_NS . 'type';
Subroutine BEGIN: called CC=1 SCAR=0.0
104 2 ▶use constant RDFA_DATATYPE => RDF_NS . 'datatype';
Subroutine BEGIN: called CC=1 SCAR=0.0
105  
106 ########################################
107 # RDFS
108 2 ▶use constant RDFS_NS => 'http://www.w3.org/2000/01/rdf-schema#';
Subroutine BEGIN: called CC=1 SCAR=0.0
109 2 ▶use constant RDFS_RESOURCE => RDFS_NS . 'Resource';
Subroutine BEGIN: called CC=1 SCAR=0.0
110 2 ▶use constant RDFS_CLASS => RDFS_NS . 'Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
111 2 ▶use constant RDFS_LITERAL => RDFS_NS . 'Literal';
Subroutine BEGIN: called CC=1 SCAR=0.0
112 2 ▶use constant RDFS_CONTAINER => RDFS_NS . 'Container';
Subroutine BEGIN: called CC=1 SCAR=0.0
113 2 ▶use constant RDFS_CONTAINER_MEMBER => RDFS_NS . 'ContainerMembershipProperty';
Subroutine BEGIN: called CC=1 SCAR=0.0
114  
115 2 ▶use constant RDFS_IS_DEFINED_BY => RDFS_NS . 'isDefinedBy';
Subroutine BEGIN: called CC=1 SCAR=0.0
116 2 ▶use constant RDFS_MEMBER => RDFS_NS . 'member';
Subroutine BEGIN: called CC=1 SCAR=0.0
117 2 ▶use constant RDFS_SUBCLASS_OF => RDFS_NS . 'subClassOf';
Subroutine BEGIN: called CC=1 SCAR=0.0
118 2 ▶use constant RDFS_SUBPROPERTY_OF => RDFS_NS . 'subPropertyOf';
Subroutine BEGIN: called CC=1 SCAR=0.0
119 2 ▶use constant RDFS_COMMENT => RDFS_NS . 'comment';
Subroutine BEGIN: called CC=1 SCAR=0.0
120 2 ▶use constant RDFS_LABEL => RDFS_NS . 'label';
Subroutine BEGIN: called CC=1 SCAR=0.0
121 2 ▶use constant RDFS_DOMAIN => RDFS_NS . 'domain';
Subroutine BEGIN: called CC=1 SCAR=0.0
122 2 ▶use constant RDFS_RANGE => RDFS_NS . 'range';
Subroutine BEGIN: called CC=1 SCAR=0.0
123 2 ▶use constant RDFS_SEE_ALSO => RDFS_NS . 'seeAlso';
Subroutine BEGIN: called CC=1 SCAR=0.0
124  
125 2 1;
126  
127 __END__
« Core/Storage/DB_File.pm ↑ Summary