1 | /* -*- Mode: c; c-basic-offset: 2 -*- |
2 | * |
3 | * rdf_concepts.h - Definitions of RDF concept URIs and nodes |
4 | * |
5 | * Copyright (C) 2000-2008, David Beckett http://www.dajobe.org/ |
6 | * Copyright (C) 2000-2004, University of Bristol, UK http://www.bristol.ac.uk/ |
7 | * |
8 | * This package is Free Software and part of Redland http://librdf.org/ |
9 | * |
10 | * It is licensed under the following three licenses as alternatives: |
11 | * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version |
12 | * 2. GNU General Public License (GPL) V2 or any newer version |
13 | * 3. Apache License, V2.0 or any newer version |
14 | * |
15 | * You may not use this file except in compliance with at least one of |
16 | * the above three licenses. |
17 | * |
18 | * See LICENSE.html or LICENSE.txt at the top of this package for the |
19 | * complete terms and further detail along with the license texts for |
20 | * the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. |
21 | * |
22 | * |
23 | */ |
24 | |
25 | |
26 | #ifndef LIBRDF_CONCEPTS_H |
27 | #define LIBRDF_CONCEPTS_H |
28 | |
29 | #ifdef LIBRDF_INTERNAL |
30 | #include <rdf_concepts_internal.h> |
31 | #endif |
32 | |
33 | #ifdef __cplusplus |
34 | extern "C" { |
35 | #endif |
36 | |
37 | typedef enum { |
38 | LIBRDF_CONCEPT_MS_Alt, |
39 | LIBRDF_CONCEPT_MS_Bag, |
40 | LIBRDF_CONCEPT_MS_Property, |
41 | LIBRDF_CONCEPT_MS_Seq, |
42 | LIBRDF_CONCEPT_MS_Statement, |
43 | LIBRDF_CONCEPT_MS_object, |
44 | LIBRDF_CONCEPT_MS_predicate, |
45 | LIBRDF_CONCEPT_MS_subject, |
46 | LIBRDF_CONCEPT_MS_type, |
47 | LIBRDF_CONCEPT_MS_value, |
48 | LIBRDF_CONCEPT_MS_li, |
49 | |
50 | LIBRDF_CONCEPT_MS_RDF, |
51 | LIBRDF_CONCEPT_MS_Description, |
52 | |
53 | LIBRDF_CONCEPT_MS_aboutEach, |
54 | LIBRDF_CONCEPT_MS_aboutEachPrefix, |
55 | |
56 | LIBRDF_CONCEPT_RS_nodeID, |
57 | LIBRDF_CONCEPT_RS_List, |
58 | LIBRDF_CONCEPT_RS_first, |
59 | LIBRDF_CONCEPT_RS_rest, |
60 | LIBRDF_CONCEPT_RS_nil, |
61 | LIBRDF_CONCEPT_RS_XMLLiteral, |
62 | |
63 | /* RDF Schema concepts defined in prose at |
64 | * http://www.w3.org/TR/2000/CR-rdf-schema-20000327/ |
65 | * and in RDF Schema form at |
66 | * http://www.w3.org/2000/01/rdf-schema |
67 | */ |
68 | LIBRDF_CONCEPT_S_Class, |
69 | LIBRDF_CONCEPT_S_ConstraintProperty, |
70 | LIBRDF_CONCEPT_S_ConstraintResource, |
71 | LIBRDF_CONCEPT_S_Container, |
72 | LIBRDF_CONCEPT_S_ContainerMembershipProperty, |
73 | LIBRDF_CONCEPT_S_Literal, |
74 | LIBRDF_CONCEPT_S_Resource, |
75 | , |
76 | LIBRDF_CONCEPT_S_domain, |
77 | LIBRDF_CONCEPT_S_isDefinedBy, |
78 | LIBRDF_CONCEPT_S_label, |
79 | LIBRDF_CONCEPT_S_range, |
80 | LIBRDF_CONCEPT_S_seeAlso, |
81 | LIBRDF_CONCEPT_S_subClassOf, |
82 | LIBRDF_CONCEPT_S_subPropertyOf, |
83 | |
84 | /* first entry from schema namespace */ |
85 | LIBRDF_CONCEPT_FIRST_S_ID = LIBRDF_CONCEPT_S_Class, |
86 | LIBRDF_CONCEPT_LAST_S_ID = LIBRDF_CONCEPT_S_subPropertyOf, |
87 | |
88 | LIBRDF_CONCEPT_RDF11_HTML, |
89 | LIBRDF_CONCEPT_RDF11_langString, |
90 | |
91 | LIBRDF_CONCEPT_LAST = LIBRDF_CONCEPT_RDF11_langString |
92 | } librdf_concepts_index; |
93 | |
94 | |
95 | /* NOTE: If the above list changes, edit the macros below and |
96 | * librdf_concept_labels in rdf_concepts.c The above list is ordered |
97 | * by simple 'sort' order |
98 | */ |
99 | |
100 | /* Get Redland uri object for RDF Syntax/Schema namespaces */ |
101 | REDLAND_API |
102 | librdf_uri* librdf_get_concept_ms_namespace(librdf_world *world); |
103 | REDLAND_API |
104 | librdf_uri* librdf_get_concept_schema_namespace(librdf_world *world); |
105 | |
106 | /* Get Redland node/uri object for RDF concepts */ |
107 | REDLAND_API |
108 | librdf_node* librdf_get_concept_resource_by_index(librdf_world *world, librdf_concepts_index idx); |
109 | REDLAND_API |
110 | librdf_uri* librdf_get_concept_uri_by_index(librdf_world *world, librdf_concepts_index idx); |
111 | |
112 | |
113 | /* public macros for the resources (librdf_node*) representing the concepts |
114 | */ |
115 | |
116 | /** |
117 | * LIBRDF_MS_Alt: |
118 | * |
119 | * RDF namespace concept librdf_node Alt |
120 | */ |
121 | #define LIBRDF_MS_Alt(world) \ |
122 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_Alt) |
123 | |
124 | /** |
125 | * LIBRDF_MS_Bag: |
126 | * |
127 | * RDF namespace concept librdf_node Bag |
128 | */ |
129 | #define LIBRDF_MS_Bag(world) \ |
130 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_Bag) |
131 | |
132 | /** |
133 | * LIBRDF_MS_Property: |
134 | * |
135 | * RDF namespace concept librdf_node Property |
136 | */ |
137 | #define LIBRDF_MS_Property(world) \ |
138 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_Property) |
139 | |
140 | /** |
141 | * LIBRDF_MS_Seq: |
142 | * |
143 | * RDF namespace concept librdf_node Seq |
144 | */ |
145 | #define LIBRDF_MS_Seq(world) \ |
146 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_Seq) |
147 | |
148 | /** |
149 | * LIBRDF_MS_Statement: |
150 | * |
151 | * RDF namespace concept librdf_node Statement |
152 | */ |
153 | #define LIBRDF_MS_Statement(world) \ |
154 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_Statement) |
155 | |
156 | /** |
157 | * LIBRDF_MS_object: |
158 | * |
159 | * RDF namespace concept librdf_node object |
160 | */ |
161 | #define LIBRDF_MS_object(world) \ |
162 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_object) |
163 | |
164 | /** |
165 | * LIBRDF_MS_predicate: |
166 | * |
167 | * RDF namespace concept librdf_node predicate |
168 | */ |
169 | #define LIBRDF_MS_predicate(world) \ |
170 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_predicate) |
171 | |
172 | /** |
173 | * LIBRDF_MS_subject: |
174 | * |
175 | * RDF namespace concept librdf_node subject |
176 | */ |
177 | #define LIBRDF_MS_subject(world) \ |
178 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_subject) |
179 | |
180 | /** |
181 | * LIBRDF_MS_type: |
182 | * |
183 | * RDF namespace concept librdf_node type |
184 | */ |
185 | #define LIBRDF_MS_type(world) \ |
186 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_type) |
187 | |
188 | /** |
189 | * LIBRDF_MS_value: |
190 | * |
191 | * RDF namespace concept librdf_node value |
192 | */ |
193 | #define LIBRDF_MS_value(world) \ |
194 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_value) |
195 | |
196 | /** |
197 | * LIBRDF_MS_li: |
198 | * |
199 | * RDF namespace concept librdf_node li |
200 | */ |
201 | #define LIBRDF_MS_li(world) \ |
202 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_li) |
203 | |
204 | /** |
205 | * LIBRDF_MS_RDF: |
206 | * |
207 | * RDF namespace concept librdf_node RDF |
208 | */ |
209 | #define LIBRDF_MS_RDF(world) \ |
210 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_RDF) |
211 | |
212 | /** |
213 | * LIBRDF_MS_Description: |
214 | * |
215 | * RDF namespace concept librdf_node Description |
216 | */ |
217 | #define LIBRDF_MS_Description(world) \ |
218 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_Description) |
219 | |
220 | /** |
221 | * LIBRDF_MS_aboutEach: |
222 | * |
223 | * RDF namespace concept librdf_node aboutEach |
224 | */ |
225 | #define LIBRDF_MS_aboutEach(world) \ |
226 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_aboutEach) |
227 | |
228 | /** |
229 | * LIBRDF_MS_aboutEachPrefix: |
230 | * |
231 | * RDF namespace concept librdf_node aboutEachPrefix |
232 | */ |
233 | #define LIBRDF_MS_aboutEachPrefix(world) \ |
234 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_MS_aboutEachPrefix) |
235 | |
236 | /** |
237 | * LIBRDF_RS_nodeID: |
238 | * |
239 | * RDF namespace concept librdf_node nodeID |
240 | */ |
241 | #define LIBRDF_RS_nodeID(world) \ |
242 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RS_nodeID) |
243 | |
244 | /** |
245 | * LIBRDF_RS_List: |
246 | * |
247 | * RDF namespace concept librdf_node List |
248 | */ |
249 | #define LIBRDF_RS_List(world) \ |
250 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RS_List) |
251 | |
252 | /** |
253 | * LIBRDF_RS_first: |
254 | * |
255 | * RDF namespace concept librdf_node first |
256 | */ |
257 | #define LIBRDF_RS_first(world) \ |
258 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RS_first) |
259 | |
260 | /** |
261 | * LIBRDF_RS_rest: |
262 | * |
263 | * RDF namespace concept librdf_node rest |
264 | */ |
265 | #define LIBRDF_RS_rest(world) \ |
266 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RS_rest) |
267 | |
268 | /** |
269 | * LIBRDF_RS_nil: |
270 | * |
271 | * RDF namespace concept librdf_node nil |
272 | */ |
273 | #define LIBRDF_RS_nil(world) \ |
274 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RS_nil) |
275 | |
276 | /** |
277 | * LIBRDF_RS_XMLLiteral: |
278 | * |
279 | * RDF namespace concept librdf_node XMLLiteral |
280 | */ |
281 | #define LIBRDF_RS_XMLLiteral(world) \ |
282 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RS_XMLLiteral) |
283 | |
284 | |
285 | /** |
286 | * LIBRDF_S_Class: |
287 | * |
288 | * RDFS namespace concept Class |
289 | */ |
290 | #define LIBRDF_S_Class(world) \ |
291 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_Class) |
292 | |
293 | /** |
294 | * LIBRDF_S_ConstraintProperty: |
295 | * |
296 | * RDFS namespace concept ConstraintProperty |
297 | */ |
298 | #define LIBRDF_S_ConstraintProperty(world) \ |
299 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_ConstraintProperty) |
300 | |
301 | /** |
302 | * LIBRDF_S_ConstraintResource: |
303 | * |
304 | * RDFS namespace concept ConstraintResource |
305 | */ |
306 | #define LIBRDF_S_ConstraintResource(world) \ |
307 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_ConstraintResource) |
308 | |
309 | /** |
310 | * LIBRDF_S_Container: |
311 | * |
312 | * RDFS namespace concept Container |
313 | */ |
314 | #define LIBRDF_S_Container(world) \ |
315 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_Container) |
316 | |
317 | /** |
318 | * LIBRDF_S_ContainerMembershipProperty: |
319 | * |
320 | * RDFS namespace concept ContainerMembershipProperty |
321 | */ |
322 | #define LIBRDF_S_ContainerMembershipProperty(world) \ |
323 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_ContainerMembershipProperty) |
324 | |
325 | /** |
326 | * LIBRDF_S_Literal: |
327 | * |
328 | * RDFS namespace concept Literal |
329 | */ |
330 | #define LIBRDF_S_Literal(world) \ |
331 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_Literal) |
332 | |
333 | /** |
334 | * LIBRDF_S_Resource: |
335 | * |
336 | * RDFS namespace concept Resource |
337 | */ |
338 | #define LIBRDF_S_Resource(world) \ |
339 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_Resource) |
340 | |
341 | /** |
342 | * LIBRDF_S_comment: |
343 | * |
344 | * RDFS namespace concept comment |
345 | */ |
346 | #define LIBRDF_S_comment(world) \ |
347 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_comment) |
348 | |
349 | /** |
350 | * LIBRDF_S_domain: |
351 | * |
352 | * RDFS namespace concept domain |
353 | */ |
354 | #define LIBRDF_S_domain(world) \ |
355 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_domain) |
356 | |
357 | /** |
358 | * LIBRDF_S_isDefinedBy: |
359 | * |
360 | * RDFS namespace concept isDefinedBy |
361 | */ |
362 | #define LIBRDF_S_isDefinedBy(world) \ |
363 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_isDefinedBy) |
364 | |
365 | /** |
366 | * LIBRDF_S_label: |
367 | * |
368 | * RDFS namespace concept label |
369 | */ |
370 | #define LIBRDF_S_label(world) \ |
371 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_label) |
372 | |
373 | /** |
374 | * LIBRDF_S_range: |
375 | * |
376 | * RDFS namespace concept range |
377 | */ |
378 | #define LIBRDF_S_range(world) \ |
379 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_range) |
380 | |
381 | /** |
382 | * LIBRDF_S_seeAlso: |
383 | * |
384 | * RDFS namespace concept seeAlso |
385 | */ |
386 | #define LIBRDF_S_seeAlso(world) \ |
387 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_seeAlso) |
388 | |
389 | /** |
390 | * LIBRDF_S_subClassOf: |
391 | * |
392 | * RDFS namespace concept subClassOf |
393 | */ |
394 | #define LIBRDF_S_subClassOf(world) \ |
395 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_subClassOf) |
396 | |
397 | /** |
398 | * LIBRDF_S_subPropertyOf: |
399 | * |
400 | * RDFS namespace concept subPropertyOf |
401 | */ |
402 | #define LIBRDF_S_subPropertyOf(world) \ |
403 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_subPropertyOf) |
404 | |
405 | /** |
406 | * LIBRDF_S_subPropertyOf: |
407 | * |
408 | * RDFS namespace concept subPropertyOf |
409 | */ |
410 | #define LIBRDF_S_subPropertyOf(world) \ |
411 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_S_subPropertyOf) |
412 | |
413 | |
414 | |
415 | /* public macros for the URIs (librdf_uri*) representing the concepts */ |
416 | |
417 | /** |
418 | * LIBRDF_MS_Alt_URI: |
419 | * |
420 | * RDF namespace concept URI Alt |
421 | */ |
422 | #define LIBRDF_MS_Alt_URI(world) \ |
423 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_Alt) |
424 | |
425 | /** |
426 | * LIBRDF_MS_Bag_URI: |
427 | * |
428 | * RDF namespace concept URI Bag |
429 | */ |
430 | #define LIBRDF_MS_Bag_URI(world) \ |
431 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_Bag) |
432 | |
433 | /** |
434 | * LIBRDF_MS_Property_URI: |
435 | * |
436 | * RDF namespace concept URI Property |
437 | */ |
438 | #define LIBRDF_MS_Property_URI(world) \ |
439 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_Property) |
440 | |
441 | /** |
442 | * LIBRDF_MS_Seq_URI: |
443 | * |
444 | * RDF namespace concept URI Seq |
445 | */ |
446 | #define LIBRDF_MS_Seq_URI(world) \ |
447 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_Seq) |
448 | |
449 | /** |
450 | * LIBRDF_MS_Statement_URI: |
451 | * |
452 | * RDF namespace concept URI Statement |
453 | */ |
454 | #define LIBRDF_MS_Statement_URI(world) \ |
455 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_Statement) |
456 | |
457 | /** |
458 | * LIBRDF_MS_object_URI: |
459 | * |
460 | * RDF namespace concept URI object |
461 | */ |
462 | #define LIBRDF_MS_object_URI(world) \ |
463 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_object) |
464 | |
465 | /** |
466 | * LIBRDF_MS_predicate_URI: |
467 | * |
468 | * RDF namespace concept URI predicate |
469 | */ |
470 | #define LIBRDF_MS_predicate_URI(world) \ |
471 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_predicate) |
472 | |
473 | /** |
474 | * LIBRDF_MS_subject_URI: |
475 | * |
476 | * RDF namespace concept URI subject |
477 | */ |
478 | #define LIBRDF_MS_subject_URI(world) \ |
479 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_subject) |
480 | |
481 | /** |
482 | * LIBRDF_MS_type_URI: |
483 | * |
484 | * RDF namespace concept URI type |
485 | */ |
486 | #define LIBRDF_MS_type_URI(world) \ |
487 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_type) |
488 | |
489 | /** |
490 | * LIBRDF_MS_value_URI: |
491 | * |
492 | * RDF namespace concept URI value |
493 | */ |
494 | #define LIBRDF_MS_value_URI(world) \ |
495 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_value) |
496 | |
497 | /** |
498 | * LIBRDF_MS_li_URI: |
499 | * |
500 | * RDF namespace concept URI li |
501 | */ |
502 | #define LIBRDF_MS_li_URI(world) \ |
503 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_li) |
504 | |
505 | /** |
506 | * LIBRDF_MS_RDF_URI: |
507 | * |
508 | * RDF namespace concept URI RDF |
509 | */ |
510 | #define LIBRDF_MS_RDF_URI(world) \ |
511 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_RDF) |
512 | |
513 | /** |
514 | * LIBRDF_MS_Description_URI: |
515 | * |
516 | * RDF namespace concept URI Description |
517 | */ |
518 | #define LIBRDF_MS_Description_URI(world) \ |
519 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_Description) |
520 | |
521 | /** |
522 | * LIBRDF_MS_aboutEach_URI: |
523 | * |
524 | * RDF namespace concept URI aboutEach |
525 | */ |
526 | #define LIBRDF_MS_aboutEach_URI(world) \ |
527 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_aboutEach) |
528 | |
529 | /** |
530 | * LIBRDF_MS_aboutEachPrefix_URI: |
531 | * |
532 | * RDF namespace concept URI aboutEachPrefix |
533 | */ |
534 | #define LIBRDF_MS_aboutEachPrefix_URI(world) \ |
535 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_MS_aboutEachPrefix) |
536 | |
537 | /** |
538 | * LIBRDF_RS_nodeID_URI: |
539 | * |
540 | * RDF namespace concept URI nodeID |
541 | */ |
542 | #define LIBRDF_RS_nodeID_URI(world) \ |
543 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_RS_nodeID) |
544 | |
545 | /** |
546 | * LIBRDF_RS_List_URI: |
547 | * |
548 | * RDF namespace concept URI List |
549 | */ |
550 | #define LIBRDF_RS_List_URI(world) \ |
551 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_RS_List) |
552 | |
553 | /** |
554 | * LIBRDF_RS_first_URI: |
555 | * |
556 | * RDF namespace concept URI first |
557 | */ |
558 | #define LIBRDF_RS_first_URI(world) \ |
559 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_RS_first) |
560 | |
561 | /** |
562 | * LIBRDF_RS_rest_URI: |
563 | * |
564 | * RDF namespace concept URI rest |
565 | */ |
566 | #define LIBRDF_RS_rest_URI(world) \ |
567 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_RS_rest) |
568 | |
569 | /** |
570 | * LIBRDF_RS_nil_URI: |
571 | * |
572 | * RDF namespace concept URI nil |
573 | */ |
574 | #define LIBRDF_RS_nil_URI(world) \ |
575 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_RS_nil) |
576 | |
577 | /** |
578 | * LIBRDF_RS_XMLLiteral_URI: |
579 | * |
580 | * RDF namespace concept URI XMLLiteral |
581 | */ |
582 | #define LIBRDF_RS_XMLLiteral_URI(world) \ |
583 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_RS_XMLLiteral) |
584 | |
585 | |
586 | /** |
587 | * LIBRDF_S_subPropertyOf_URI: |
588 | * |
589 | * RDFS namespace concept URI subPropertyOf |
590 | */ |
591 | #define LIBRDF_S_subPropertyOf_URI(world) \ |
592 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_subPropertyOf) |
593 | |
594 | /** |
595 | * LIBRDF_S_subClassOf_URI: |
596 | * |
597 | * RDFS namespace concept URI subClassOf |
598 | */ |
599 | #define LIBRDF_S_subClassOf_URI(world) \ |
600 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_subClassOf) |
601 | |
602 | /** |
603 | * LIBRDF_S_seeAlso_URI: |
604 | * |
605 | * RDFS namespace concept URI seeAlso |
606 | */ |
607 | #define LIBRDF_S_seeAlso_URI(world) \ |
608 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_seeAlso) |
609 | |
610 | /** |
611 | * LIBRDF_S_range_URI: |
612 | * |
613 | * RDFS namespace concept URI range |
614 | */ |
615 | #define LIBRDF_S_range_URI(world) \ |
616 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_range) |
617 | |
618 | /** |
619 | * LIBRDF_S_label_URI: |
620 | * |
621 | * RDFS namespace concept URI label |
622 | */ |
623 | #define LIBRDF_S_label_URI(world) \ |
624 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_label) |
625 | |
626 | /** |
627 | * LIBRDF_S_isDefinedBy_URI: |
628 | * |
629 | * RDFS namespace concept URI isDefinedBy |
630 | */ |
631 | #define LIBRDF_S_isDefinedBy_URI(world) \ |
632 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_isDefinedBy) |
633 | |
634 | /** |
635 | * LIBRDF_S_domain_URI: |
636 | * |
637 | * RDFS namespace concept URI domain |
638 | */ |
639 | #define LIBRDF_S_domain_URI(world) \ |
640 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_domain) |
641 | |
642 | /** |
643 | * LIBRDF_S_comment_URI: |
644 | * |
645 | * RDFS namespace concept URI comment |
646 | */ |
647 | #define LIBRDF_S_comment_URI(world) \ |
648 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_comment) |
649 | |
650 | /** |
651 | * LIBRDF_S_Resource_URI: |
652 | * |
653 | * RDFS namespace concept URI Resource |
654 | */ |
655 | #define LIBRDF_S_Resource_URI(world) \ |
656 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_Resource) |
657 | |
658 | /** |
659 | * LIBRDF_S_Literal_URI: |
660 | * |
661 | * RDFS namespace concept URI Literal |
662 | */ |
663 | #define LIBRDF_S_Literal_URI(world) \ |
664 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_Literal) |
665 | |
666 | /** |
667 | * LIBRDF_S_Container_URI: |
668 | * |
669 | * RDFS namespace concept URI Container |
670 | */ |
671 | #define LIBRDF_S_Container_URI(world) \ |
672 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_Container) |
673 | |
674 | /** |
675 | * LIBRDF_S_ContainerMembershipProperty_URI: |
676 | * |
677 | * RDFS namespace concept URI ContainerMembershipProperty |
678 | */ |
679 | #define LIBRDF_S_ContainerMembershipProperty_URI(world) \ |
680 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_ContainerMembershipProperty) |
681 | |
682 | /** |
683 | * LIBRDF_S_ConstraintResource_URI: |
684 | * |
685 | * RDFS namespace concept URI ConstraintResource |
686 | */ |
687 | #define LIBRDF_S_ConstraintResource_URI(world) \ |
688 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_ConstraintResource) |
689 | |
690 | /** |
691 | * LIBRDF_S_ConstraintProperty_URI: |
692 | * |
693 | * RDFS namespace concept URI ConstraintProperty |
694 | */ |
695 | #define LIBRDF_S_ConstraintProperty_URI(world) \ |
696 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_ConstraintProperty) |
697 | |
698 | /** |
699 | * LIBRDF_S_Class_URI: |
700 | * |
701 | * RDFS namespace concept URI Class |
702 | */ |
703 | #define LIBRDF_S_Class_URI(world) \ |
704 | librdf_get_concept_uri_by_index(world, LIBRDF_CONCEPT_S_Class) |
705 | |
706 | |
707 | /** |
708 | * LIBRDF_RDF11_HTML: |
709 | * |
710 | * RDF 1.1 namespace concept HTML |
711 | */ |
712 | #define LIBRDF_RDF11_HTML(world) \ |
713 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RDF11_HTML) |
714 | |
715 | |
716 | /** |
717 | * LIBRDF_RDF11_langString: |
718 | * |
719 | * RDF 1.1 namespace concept langString |
720 | */ |
721 | #define LIBRDF_RDF11_langString(world) \ |
722 | librdf_get_concept_resource_by_index(world, LIBRDF_CONCEPT_RDF11_langString) |
723 | |
724 | |
725 | /** |
726 | * LIBRDF_URI_RDF_MS: |
727 | * |
728 | * #librdf_uri for <literal>rdf:</literal> namespace. Copy with |
729 | * librdf_new_uri_from_uri() before using. |
730 | */ |
731 | #define LIBRDF_URI_RDF_MS(world) librdf_get_concept_ms_namespace(world) |
732 | |
733 | /** |
734 | * LIBRDF_URI_RDF_SCHEMA: |
735 | * |
736 | * #librdf_uri for <literal>rdfs:</literal> namespace. Copy with |
737 | * librdf_new_uri_from_uri() before using. |
738 | */ |
739 | #define LIBRDF_URI_RDF_SCHEMA(world) librdf_get_concept_schema_namespace(world) |
740 | |
741 | #ifdef __cplusplus |
742 | } |
743 | #endif |
744 | |
745 | #endif |
746 | |