comparison planemo/lib/python3.7/site-packages/rdflib/plugins/parsers/pyRdfa/initialcontext.py @ 1:56ad4e20f292 draft

"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author guerler
date Fri, 31 Jul 2020 00:32:28 -0400
parents
children
comparison
equal deleted inserted replaced
0:d30785e31577 1:56ad4e20f292
1 # -*- coding: utf-8 -*-
2 """
3 Built-in version of the initial contexts for RDFa Core, and RDFa + HTML
4
5 @summary: Management of vocabularies, terms, and their mapping to URI-s.
6 @requires: U{RDFLib package<http://rdflib.net>}
7 @organization: U{World Wide Web Consortium<http://www.w3.org>}
8 @author: U{Ivan Herman<a href="http://www.w3.org/People/Ivan/">}
9 @license: This software is available for use under the
10 U{W3C® SOFTWARE NOTICE AND LICENSE<href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">}
11
12 @var initial_context: dictionary for all the initial context data, keyed through the context URI-s
13 """
14
15 class Wrapper :
16 pass
17
18 initial_context = {
19 "http://www.w3.org/2011/rdfa-context/rdfa-1.1" : Wrapper(),
20 "http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1" : Wrapper(),
21 }
22
23 initial_context["http://www.w3.org/2011/rdfa-context/rdfa-1.1"].ns = {
24 'dcat' : 'http://www.w3.org/ns/dcat#',
25 'qb' : 'http://purl.org/linked-data/cube#',
26 'org' : 'http://www.w3.org/ns/org#',
27 'owl' : 'http://www.w3.org/2002/07/owl#',
28 'gr' : 'http://purl.org/goodrelations/v1#',
29 'ctag' : 'http://commontag.org/ns#',
30 'cc' : 'http://creativecommons.org/ns#',
31 'grddl' : 'http://www.w3.org/2003/g/data-view#',
32 'rif' : 'http://www.w3.org/2007/rif#',
33 'sioc' : 'http://rdfs.org/sioc/ns#',
34 'skos' : 'http://www.w3.org/2004/02/skos/core#',
35 'xml' : 'http://www.w3.org/XML/1998/namespace',
36 'rr' : 'http://www.w3.org/ns/r2rml#',
37 'rdfs' : 'http://www.w3.org/2000/01/rdf-schema#',
38 'rev' : 'http://purl.org/stuff/rev#',
39 'rdfa' : 'http://www.w3.org/ns/rdfa#',
40 'dc' : 'http://purl.org/dc/terms/',
41 'dcterms' : 'http://purl.org/dc/terms/',
42 'dc11' : 'http://purl.org/dc/elements/1.1/',
43 'foaf' : 'http://xmlns.com/foaf/0.1/',
44 'void' : 'http://rdfs.org/ns/void#',
45 'ical' : 'http://www.w3.org/2002/12/cal/icaltzd#',
46 'vcard' : 'http://www.w3.org/2006/vcard/ns#',
47 'wdrs' : 'http://www.w3.org/2007/05/powder-s#',
48 'og' : 'http://ogp.me/ns#',
49 'wdr' : 'http://www.w3.org/2007/05/powder#',
50 'rdf' : 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
51 'xhv' : 'http://www.w3.org/1999/xhtml/vocab#',
52 'xsd' : 'http://www.w3.org/2001/XMLSchema#',
53 'v' : 'http://rdf.data-vocabulary.org/#',
54 'skosxl' : 'http://www.w3.org/2008/05/skos-xl#',
55 'schema' : 'http://schema.org/',
56 'ma' : 'http://www.w3.org/ns/ma-ont#',
57 'sd' : 'http://www.w3.org/ns/sparql-service-description#',
58 'prov' : 'http://www.w3.org/ns/prov#',
59 }
60
61 initial_context["http://www.w3.org/2011/rdfa-context/rdfa-1.1"].terms = {
62 'describedby' : 'http://www.w3.org/2007/05/powder-s#describedby',
63 'role' : 'http://www.w3.org/1999/xhtml/vocab#role',
64 'license' : 'http://www.w3.org/1999/xhtml/vocab#license',
65 }
66
67 initial_context["http://www.w3.org/2011/rdfa-context/rdfa-1.1"].vocabulary = ""
68
69 initial_context["http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"].ns = {
70 }
71
72 initial_context["http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"].vocabulary = ""
73
74 initial_context["http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"].terms = {
75 'alternate' : 'http://www.w3.org/1999/xhtml/vocab#alternate',
76 'appendix' : 'http://www.w3.org/1999/xhtml/vocab#appendix',
77 'cite' : 'http://www.w3.org/1999/xhtml/vocab#cite',
78 'bookmark' : 'http://www.w3.org/1999/xhtml/vocab#bookmark',
79 'chapter' : 'http://www.w3.org/1999/xhtml/vocab#chapter',
80 'contents' : 'http://www.w3.org/1999/xhtml/vocab#contents',
81 'copyright' : 'http://www.w3.org/1999/xhtml/vocab#copyright',
82 'glossary' : 'http://www.w3.org/1999/xhtml/vocab#glossary',
83 'help' : 'http://www.w3.org/1999/xhtml/vocab#help',
84 'icon' : 'http://www.w3.org/1999/xhtml/vocab#icon',
85 'index' : 'http://www.w3.org/1999/xhtml/vocab#index',
86 'meta' : 'http://www.w3.org/1999/xhtml/vocab#meta',
87 'next' : 'http://www.w3.org/1999/xhtml/vocab#next',
88 'license' : 'http://www.w3.org/1999/xhtml/vocab#license',
89 'p3pv1' : 'http://www.w3.org/1999/xhtml/vocab#p3pv1',
90 'prev' : 'http://www.w3.org/1999/xhtml/vocab#prev',
91 'previous' : 'http://www.w3.org/1999/xhtml/vocab#previous',
92 'role' : 'http://www.w3.org/1999/xhtml/vocab#role',
93 'section' : 'http://www.w3.org/1999/xhtml/vocab#section',
94 'stylesheet' : 'http://www.w3.org/1999/xhtml/vocab#stylesheet',
95 'subsection' : 'http://www.w3.org/1999/xhtml/vocab#subsection',
96 'start' : 'http://www.w3.org/1999/xhtml/vocab#start',
97 'up' : 'http://www.w3.org/1999/xhtml/vocab#up',
98 'last' : 'http://www.w3.org/1999/xhtml/vocab#last',
99 'first' : 'http://www.w3.org/1999/xhtml/vocab#first',
100 'top' : 'http://www.w3.org/1999/xhtml/vocab#top',
101 }
102