source: branches/new-datamodel/src/constants.lisp

Last change on this file was 160, checked in by lgiessmann, 14 years ago

changed the rdf2tm-mapping when exporting reifiers; fixed some problems in the rdf-reification-test-file

  • Property svn:eol-style set to native
File size: 6.0 KB
Line 
1
2;;+-----------------------------------------------------------------------------
3;;+  Isidorus
4;;+  (c) 2008-2009 Marc Kuester, Christoph Ludwig, Lukas Giessmann
5;;+
6;;+  Isidorus is freely distributable under the LGPL license.
7;;+  You can find a detailed description in trunk/docs/LGPL-LICENSE.txt.
8;;+-----------------------------------------------------------------------------
9
10
11(defpackage :constants
12  (:use :cl)
13  (:export :*atom-ns*
14           :*egovpt-ns*
15           :*instance-psi*
16           :*isidorus-system*
17           :*type-instance-psi*
18           :*type-psi*
19           :*supertype-subtype-psi*
20           :*supertype-psi*
21           :*subtype-psi*
22           :*xtm2.0-ns*
23           :*xtm1.0-ns*
24           :*xtm1.0-xlink*
25           :*rdf-ns*
26           :*rdfs-ns*
27           :*xml-ns*
28           :*xmlns-ns*
29           :*xml-string*
30           :*xml-uri*
31           :*rdf2tm-ns*
32           :*rdf-statement*
33           :*rdf-object*
34           :*rdf-subject*
35           :*rdf-predicate*
36           :*rdf-nil*
37           :*rdf-first*
38           :*rdf-rest*
39           :*rdf2tm-object*
40           :*rdf2tm-subject*
41           :*rdf2tm-scope-prefix*
42           :*tm2rdf-ns*
43           :*tm2rdf-topic-type-uri*
44           :*tm2rdf-name-type-uri*
45           :*tm2rdf-name-property*
46           :*tm2rdf-variant-type-uri*
47           :*tm2rdf-variant-property*
48           :*tm2rdf-occurrence-type-uri*
49           :*tm2rdf-occurrence-property*
50           :*tm2rdf-role-type-uri*
51           :*tm2rdf-role-property*
52           :*tm2rdf-association-type-uri*
53           :*tm2rdf-associaiton-property*
54           :*tm2rdf-subjectIdentifier-property*
55           :*tm2rdf-itemIdentity-property*
56           :*tm2rdf-subjectLocator-property*
57           :*tm2rdf-value-property*
58           :*tm2rdf-nametype-property*
59           :*tm2rdf-scope-property*
60           :*tm2rdf-varianttype-property*
61           :*tm2rdf-occurrencetype-property*
62           :*tm2rdf-roletype-property*
63           :*tm2rdf-associationtype-property*
64           :*tm2rdf-player-property*
65           :*rdf2tm-blank-node-prefix*
66           :*tm2rdf-reifier-property*))
67           
68
69(in-package :constants)
70(defparameter *xtm2.0-ns* "http://www.topicmaps.org/xtm/")
71
72(defparameter *xtm1.0-ns* "http://www.topicmaps.org/xtm/1.0/")
73
74(defparameter *xtm1.0-xlink* "http://www.w3.org/1999/xlink")
75
76(defparameter *atom-ns* "http://www.w3.org/2005/Atom")
77
78(defparameter *egovpt-ns* "http://www.egovpt.org/sdshare/")
79
80(defparameter *type-instance-psi* "http://psi.topicmaps.org/iso13250/model/type-instance")
81
82(defparameter *type-psi* "http://psi.topicmaps.org/iso13250/model/type")
83
84(defparameter *instance-psi* "http://psi.topicmaps.org/iso13250/model/instance")
85
86(defparameter *supertype-subtype-psi* "http://psi.topicmaps.org/iso13250/model/supertype-subtype")
87
88(defparameter *supertype-psi* "http://psi.topicmaps.org/iso13250/model/supertype")
89
90(defparameter *subtype-psi* "http://psi.topicmaps.org/iso13250/model/subtype")
91
92(defparameter *isidorus-system* (asdf:find-system "isidorus"))
93
94(defparameter *rdf-ns* "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
95
96(defparameter *rdfs-ns* "http://www.w3.org/2000/01/rdf-schema#")
97
98(defparameter *xml-ns* "http://www.w3.org/XML/1998/namespace")
99
100(defparameter *xmlns-ns* "http://www.w3.org/2000/xmlns/")
101
102(defparameter *xml-string* "http://www.w3.org/2001/XMLSchema#string")
103
104(defparameter *xml-uri* "http://www.w3.org/2001/XMLSchema#anyURI")
105
106(defparameter *rdf2tm-ns* "http://isidorus/rdf2tm_mapping/")
107
108(defparameter *rdf-statement* (concatenate 'string *rdf-ns* "Statement"))
109
110(defparameter *rdf-object* (concatenate 'string *rdf-ns* "object"))
111
112(defparameter *rdf-subject* (concatenate 'string *rdf-ns* "subject"))
113
114(defparameter *rdf-predicate* (concatenate 'string *rdf-ns* "predicate"))
115
116(defparameter *rdf-nil* (concatenate 'string *rdf-ns* "nil"))
117
118(defparameter *rdf-first* (concatenate 'string *rdf-ns* "first"))
119
120(defparameter *rdf-rest* (concatenate 'string *rdf-ns* "rest"))
121
122(defparameter *rdf2tm-object* (concatenate 'string *rdf2tm-ns* "object"))
123
124(defparameter *rdf2tm-subject* (concatenate 'string *rdf2tm-ns* "subject"))
125
126(defparameter *rdf2tm-scope-prefix* (concatenate 'string *rdf2tm-ns* "scope/"))
127
128(defparameter *rdf2tm-blank-node-prefix* (concatenate 'string *rdf2tm-ns* "blank_node/"))
129
130(defparameter *tm2rdf-ns* "http://isidorus/tm2rdf_mapping/")
131
132(defparameter *tm2rdf-topic-type-uri* (concatenate 'string *tm2rdf-ns* "types/Topic"))
133
134(defparameter *tm2rdf-name-type-uri* (concatenate 'string *tm2rdf-ns* "types/Name"))
135
136(defparameter *tm2rdf-name-property* (concatenate 'string *tm2rdf-ns* "name"))
137
138(defparameter *tm2rdf-variant-type-uri* (concatenate 'string *tm2rdf-ns* "types/Variant"))
139
140(defparameter *tm2rdf-variant-property* (concatenate 'string *tm2rdf-ns* "variant"))
141
142(defparameter *tm2rdf-occurrence-type-uri* (concatenate 'string *tm2rdf-ns* "types/Occurrence"))
143
144(defparameter *tm2rdf-occurrence-property* (concatenate 'string *tm2rdf-ns* "occurrence"))
145
146(defparameter *tm2rdf-role-type-uri* (concatenate 'string *tm2rdf-ns* "types/Role"))
147
148(defparameter *tm2rdf-role-property* (concatenate 'string *tm2rdf-ns* "role"))
149
150(defparameter *tm2rdf-association-type-uri* (concatenate 'string *tm2rdf-ns* "types/Association"))
151
152(defparameter *tm2rdf-association-property* (concatenate 'string *tm2rdf-ns* "association"))
153
154(defparameter *tm2rdf-subjectIdentifier-property* (concatenate 'string *tm2rdf-ns* "subjectIdentifier"))
155
156(defparameter *tm2rdf-subjectLocator-property* (concatenate 'string *tm2rdf-ns* "subjectLocator"))
157
158(defparameter *tm2rdf-itemIdentity-property* (concatenate 'string *tm2rdf-ns* "itemIdentity"))
159
160(defparameter *tm2rdf-value-property* (concatenate 'string *tm2rdf-ns* "value"))
161
162(defparameter *tm2rdf-nametype-property* (concatenate 'string *tm2rdf-ns* "nametype"))
163
164(defparameter *tm2rdf-scope-property* (concatenate 'string *tm2rdf-ns* "scope"))
165
166(defparameter *tm2rdf-varianttype-property* (concatenate 'string *tm2rdf-ns* "varianttype"))
167
168(defparameter *tm2rdf-occurrencetype-property* (concatenate 'string *tm2rdf-ns* "occurrencetype"))
169
170(defparameter *tm2rdf-roletype-property* (concatenate 'string *tm2rdf-ns* "roletype"))
171
172(defparameter *tm2rdf-associationtype-property* (concatenate 'string *tm2rdf-ns* "associationtype"))
173
174(defparameter *tm2rdf-player-property* (concatenate 'string *tm2rdf-ns* "player"))
175
176(defparameter *tm2rdf-reifier-property* (concatenate 'string *tm2rdf-ns* "reifier"))
Note: See TracBrowser for help on using the repository browser.