Debian Codegraph @

src/pyRdfa/initialcontext.py

raw symbols SCIP
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 """
16 $Id: initialcontext.py,v 1.16 2017/10/19 12:08:11 ivan Exp $
17 $Date: 2017/10/19 12:08:11 $
18 """
19
20 class Wrapper:
21 pass
22
23 initial_context = {
24 "http://www.w3.org/2011/rdfa-context/rdfa-1.1": Wrapper(),
25 "http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1": Wrapper(),
26 }
27
28 initial_context["http://www.w3.org/2011/rdfa-context/rdfa-1.1"].ns = {
29 'as': 'https://www.w3.org/ns/activitystreams#',
30 'csvw': 'http://www.w3.org/ns/csvw#',
31 'dcat': 'http://www.w3.org/ns/dcat#',
32 'dqv': 'http://www.w3.org/ns/dqv#',
33 'duv': 'https://www.w3.org/ns/duv#',
34 'qb': 'http://purl.org/linked-data/cube#',
35 'org': 'http://www.w3.org/ns/org#',
36 'owl': 'http://www.w3.org/2002/07/owl#',
37 'gr': 'http://purl.org/goodrelations/v1#',
38 'ctag': 'http://commontag.org/ns#',
39 'cc': 'http://creativecommons.org/ns#',
40 'grddl': 'http://www.w3.org/2003/g/data-view#',
41 'jsonld': 'http://www.w3.org/ns/json-ld#',
42 'ldp': 'http://www.w3.org/ns/ldp#',
43 'oa': 'http://www.w3.org/ns/oa#',
44 'rif': 'http://www.w3.org/2007/rif#',
45 'sioc': 'http://rdfs.org/sioc/ns#',
46 'skos': 'http://www.w3.org/2004/02/skos/core#',
47 'xml': 'http://www.w3.org/XML/1998/namespace',
48 'rr': 'http://www.w3.org/ns/r2rml#',
49 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#',
50 'rev': 'http://purl.org/stuff/rev#',
51 'rdfa': 'http://www.w3.org/ns/rdfa#',
52 'dc': 'http://purl.org/dc/terms/',
53 'dcterms': 'http://purl.org/dc/terms/',
54 'dc11': 'http://purl.org/dc/elements/1.1/',
55 'foaf': 'http://xmlns.com/foaf/0.1/',
56 'void': 'http://rdfs.org/ns/void#',
57 'ical': 'http://www.w3.org/2002/12/cal/icaltzd#',
58 'vcard': 'http://www.w3.org/2006/vcard/ns#',
59 'wdrs': 'http://www.w3.org/2007/05/powder-s#',
60 'og': 'http://ogp.me/ns#',
61 'wdr': 'http://www.w3.org/2007/05/powder#',
62 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
63 'xhv': 'http://www.w3.org/1999/xhtml/vocab#',
64 'xsd': 'http://www.w3.org/2001/XMLSchema#',
65 'v': 'http://rdf.data-vocabulary.org/#',
66 'skosxl': 'http://www.w3.org/2008/05/skos-xl#',
67 'schema': 'http://schema.org/',
68 'ssn': 'http://www.w3.org/ns/ssn/',
69 'sosa': 'http://www.w3.org/ns/sosa/',
70 'time': 'http://www.w3.org/2006/time#',
71 'ma': 'http://www.w3.org/ns/ma-ont#',
72 'sd': 'http://www.w3.org/ns/sparql-service-description#',
73 'prov': 'http://www.w3.org/ns/prov#',
74 'odrl': 'http://www.w3.org/ns/odrl/2/'
75 }
76
77 initial_context["http://www.w3.org/2011/rdfa-context/rdfa-1.1"].terms = {
78 'describedby': 'http://www.w3.org/2007/05/powder-s#describedby',
79 'role': 'http://www.w3.org/1999/xhtml/vocab#role',
80 'license': 'http://www.w3.org/1999/xhtml/vocab#license',
81 }
82
83 initial_context["http://www.w3.org/2011/rdfa-context/rdfa-1.1"].vocabulary = ""
84
85 initial_context["http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"].ns = {
86 }
87
88 initial_context["http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"].vocabulary = ""
89
90 initial_context["http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"].terms = {
91 'alternate': 'http://www.w3.org/1999/xhtml/vocab#alternate',
92 'appendix': 'http://www.w3.org/1999/xhtml/vocab#appendix',
93 'cite': 'http://www.w3.org/1999/xhtml/vocab#cite',
94 'bookmark': 'http://www.w3.org/1999/xhtml/vocab#bookmark',
95 'chapter': 'http://www.w3.org/1999/xhtml/vocab#chapter',
96 'contents': 'http://www.w3.org/1999/xhtml/vocab#contents',
97 'copyright': 'http://www.w3.org/1999/xhtml/vocab#copyright',
98 'glossary': 'http://www.w3.org/1999/xhtml/vocab#glossary',
99 'help': 'http://www.w3.org/1999/xhtml/vocab#help',
100 'icon': 'http://www.w3.org/1999/xhtml/vocab#icon',
101 'index': 'http://www.w3.org/1999/xhtml/vocab#index',
102 'meta': 'http://www.w3.org/1999/xhtml/vocab#meta',
103 'next': 'http://www.w3.org/1999/xhtml/vocab#next',
104 'license': 'http://www.w3.org/1999/xhtml/vocab#license',
105 'p3pv1': 'http://www.w3.org/1999/xhtml/vocab#p3pv1',
106 'prev': 'http://www.w3.org/1999/xhtml/vocab#prev',
107 'previous': 'http://www.w3.org/1999/xhtml/vocab#previous',
108 'role': 'http://www.w3.org/1999/xhtml/vocab#role',
109 'section': 'http://www.w3.org/1999/xhtml/vocab#section',
110 'stylesheet': 'http://www.w3.org/1999/xhtml/vocab#stylesheet',
111 'subsection': 'http://www.w3.org/1999/xhtml/vocab#subsection',
112 'start': 'http://www.w3.org/1999/xhtml/vocab#start',
113 'up': 'http://www.w3.org/1999/xhtml/vocab#up',
114 'last': 'http://www.w3.org/1999/xhtml/vocab#last',
115 'first': 'http://www.w3.org/1999/xhtml/vocab#first',
116 'top': 'http://www.w3.org/1999/xhtml/vocab#top'
117 }