summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex
blob: 1069318a4b2507b1e08bba3a2ed397ceb5795a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
% Copyright 2018 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.

\ProvidesFileRCS{pgfcorerdf.code.tex}



% 
%
% The Resource Description Framework (RDF) is a method of enriching
% output files with semantic information. In PGF, you can use the
% following commands to create RDF information that will be inserted
% into the output, provided the output format allows this (SVG
% does). You call any of these commands before an ID-scope and it will
% attach the attribute(s) to this id scope.
%
%
% Example:
%
% ...
% \pgfrdftypeof{http://purl.org/dc/dcmitype/Image}
% \pgfrdfresource{/paper/figures/1}
% \pgfidscope
%   % This ID scope will be flagged as the resource "/paper/figures/1"
%   % and typeof "Image" from the Dublin Core.
%   ...
% \endidscope





% Adds the rdf attribute "about" with value #1 to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% The RDF-spec says: "a SafeCURIEorCURIEorIRI, used for stating what
% the data is about (a 'subject' in RDF terminology);" 

\def\pgfrdfabout#1{\pgfsys@rdf@about{#1}}



% Adds the rdf attribute content with value #1 to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% The RDF-spec says: "a CDATA string, for supplying machine-readable
% content for a literal (a 'literal object', in RDF terminology);"  

\def\pgfrdfcontent#1{\pgfsys@rdf@content{#1}}



% Adds the rdf attribute datatype with value #1 to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% The RDF-spec says: "a TERMorCURIEorAbsIRI representing a datatype,
% to express the datatype of a literal;" 

\def\pgfrdfdatatype#1{\pgfsys@rdf@datatype{#1}}



% Adds the rdf attribute href with value #1 to the next idscope
% The RDF-spec says: "a traditionally navigable IRI for
% expressing the partner resource of a relationship (a 'resource object', in RDF terminology);" 

\def\pgfrdfhref#1{\pgfsys@rdf@href{#1}}



% Adds the rdf attribute inlist to the next idscope.
%
% Description:
%
% The RDF-spec says: "An attribute used to indicate that the object
% associated with a rel or property attribute on the same element is
% to be added to the list for that predicate. Presence of this
% attribute causes a list to be created if it does not already exist."   

\def\pgfrdfinlist{\pgfsys@rdf@inlist}




% Adds #1 to the list of the rdf prefix attribute to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% Can be called several times, in which case all values of #1 are
% concatenated with whitespaces. The RDF-spec says: "a white space
% separated list of prefix-name IRI pairs of the form NCName ':' ' '+
% xsd:anyURI"  

\def\pgfrdfprefix#1{\pgfsys@rdf@prefix{#1}}




% Adds #1 to the list of the rdf property attribute to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% Can be called repeatedly. The RDF-spec says: "a white space
% separated list of TERMorCURIEorAbsIRIs, used for expressing
% relationships between a subject and either a resource object if
% given or some literal text (also a 'predicate');"  

\def\pgfrdfproperty#1{\pgfsys@rdf@property{#1}}



% Adds #1 to the list of the rdf rel attribute to the next
% next idscope.
%
% #1 = A URL
%
% Description:
%
% Can be called repeatedly. The RDF-spec says: "a white space
% separated list of TERMorCURIEorAbsIRIs, used for expressing
% relationships between two resources ('predicates' in RDF
% terminology);" 

\def\pgfrdfrel#1{\pgfsys@rdf@rel{#1}}


% Adds the rdf attribute resource with value #1 to the next idscope.
%
% #1 = A URL
%
% Description:
%
% The RDF-spec says: "a SafeCURIEorCURIEorIRI for expressing the
% partner resource of a relationship that is not intended to be
% navigable (e.g., a 'clickable' link) (also an 'object');"  

\def\pgfrdfresource#1{\pgfsys@rdf@resource{#1}}




% Adds #1 to the list of the rdf rev attribute to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% Can be called repeatedly. The RDF-spec says: "a white space
% separated list of TERMorCURIEorAbsIRIs, used for expressing reverse
% relationships between two resources (also 'predicates');

\def\pgfrdfrev#1{\pgfsys@rdf@rev{#1}}




% Adds an rdf attribute src with value #1 to the next idscope.
%
% #1 = A URL
%
% Description:
%
% The RDF-spec says: "an IRI for expressing the partner resource of a
% relationship when the resource is embedded (also a 'resource object');" 

\def\pgfrdfsrc#1{\pgfsys@rdf@src{#1}}




% Adds #1 to the list of the rdf typeof attribute to the next
% idscope.
%
% #1 = A URL
%
% Description:
%
% Can be called repeatedly. The RDF-spec says: "a white space
% separated list of TERMorCURIEorAbsIRIs that indicate the RDF type(s)
% to associate with a subject;" 

\def\pgfrdftypeof#1{\pgfsys@rdf@typeof{#1}}




% Adds an rdf attribute vocab with value #1 to the next idscope.
%
% #1 = A URL
%
% Description:
%
% The RDF-spec says: "an IRI that defines the mapping to use when a
% TERM is referenced in an attribute value. See General Use of Terms
% in Attributes and the section on Vocabulary Expansion."  

\def\pgfrdfvocab#1{\pgfsys@rdf@vocab{#1}}





\endinput