-
Notifications
You must be signed in to change notification settings - Fork 2
/
bookHtml014.html
98 lines (92 loc) · 17.8 KB
/
bookHtml014.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="hevea 2.23">
<link rel="stylesheet" type="text/css" href="book.css"><link rel="stylesheet" type="text/css" href="bookHtml.css">
<title>WebIndex in ShEx</title>
</head>
<body>
<a href="bookHtml013.html"><img src="previous_motif.gif" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.gif" alt="Up"></a>
<a href="bookHtml015.html"><img src="next_motif.gif" alt="Next"></a>
<hr>
<header>
<a href="http://book.validatingrdf.com">Validating RDF data</a>
<img src="cover.jpg"></img>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112019120-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-112019120-1');
</script>
</header>
<h1 class="chapter" id="sec218">Appendix A WebIndex in ShEx</h1>
<p>
<a id="AppendixWebIndexShEx"></a>
<a id="appa"></a></p><p>The following code contains the schema of the WebIndex in ShEx that was described in Section <a href="bookHtml012.html#ch070WebIndexShEx">6.1.1</a>.</p><table class="lstframe c014"><tr><td class="lstlisting"><span class="c011"><span class="c003">prefix</span></span><span class="c011"> : </span><span class="c011"><span class="c008"><span class="c011"><http://example.org/></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">sh</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://www.w3.org/ns/shacl#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://www.w3.org/2001/XMLSchema#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">rdf</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://www.w3.org/1999/02/22-rdf-syntax-ns#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">wf</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://data.webfoundation.org#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">rdfs</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://www.w3.org/2000/01/rdf-schema#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">qb</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://purl.org/linked-data/cube#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">cex</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://purl.org/weso/ontology/computex#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">dct</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://purl.org/dc/terms/></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">skos</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://www.w3.org/2004/02/skos/core#></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">foaf</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://xmlns.com/foaf/0.1/></span></span></span><span class="c011">
</span><span class="c011"><span class="c003">prefix</span></span><span class="c011"> </span><span class="c011"><span class="c004">org</span></span><span class="c011">: </span><span class="c011"><span class="c008"><span class="c011"><http://www.w3.org/ns/org#></span></span></span><span class="c011">
</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">Country</span></span><span class="c011"> {</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">rdfs</span></span><span class="c011">:</span><span class="c011"><span class="c006">label</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">string</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">iso2</span></span><span class="c011"> </span><span class="c011"><span class="c003">LENGTH</span></span><span class="c011"> 2</span><span class="c011">
</span><span class="c011">}</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">DataSet</span></span><span class="c011"> { </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">DataSet</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">structure</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">DSD</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">rdfs</span></span><span class="c011">:</span><span class="c011"><span class="c006">label</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">string</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">slice</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Slice</span></span><span class="c011">* ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">dct</span></span><span class="c011">:</span><span class="c011"><span class="c006">publisher</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Organization</span></span><span class="c011">
</span><span class="c011">}</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">Slice</span></span><span class="c011"> { </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">Slice</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">sliceStructure</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">sliceByYear</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">observation</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Observation</span></span><span class="c011">* ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">cex</span></span><span class="c011">:</span><span class="c011"><span class="c006">indicator</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Indicator</span></span><span class="c011">
</span><span class="c011">}</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">Observation</span></span><span class="c011"> { </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">Observation</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">Observation</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">cex</span></span><span class="c011">:</span><span class="c011"><span class="c006">value</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">float</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">rdfs</span></span><span class="c011">:</span><span class="c011"><span class="c006">label</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">string</span></span><span class="c011"> ? ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">dct</span></span><span class="c011">:</span><span class="c011"><span class="c006">issued</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">dateTime</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">dct</span></span><span class="c011">:</span><span class="c011"><span class="c006">publisher</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">WebFoundation</span></span><span class="c011"> ] ? ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">qb</span></span><span class="c011">:</span><span class="c011"><span class="c006">dataSet</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">DataSet</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">cex</span></span><span class="c011">:</span><span class="c011"><span class="c006">ref</span></span><span class="c011">-</span><span class="c011"><span class="c006">area</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Country</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">cex</span></span><span class="c011">:</span><span class="c011"><span class="c006">indicator</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Indicator</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> ( </span><span class="c011"><span class="c004">cex</span></span><span class="c011">:</span><span class="c011"><span class="c006">computation</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Computation</span></span><span class="c011">
</span><span class="c011"> | </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">source</span></span><span class="c011"> </span><span class="c011"><span class="c003">IRI</span></span><span class="c011">
</span><span class="c011"> )</span><span class="c011">
</span><span class="c011">}</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">Computation</span></span><span class="c011"> { </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">cex</span></span><span class="c011">:</span><span class="c011"><span class="c006">Computation</span></span><span class="c011"> ] }</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">Indicator</span></span><span class="c011"> { </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">PrimaryIndicator</span></span><span class="c011"> </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">SecondaryIndicator</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">rdfs</span></span><span class="c011">:</span><span class="c011"><span class="c006">label</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">string</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">wf</span></span><span class="c011">:</span><span class="c011"><span class="c006">provider</span></span><span class="c011"> </span><span class="c011"><span class="c006">@</span></span><span class="c011">:</span><span class="c011"><span class="c006">Organization</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011">}</span><span class="c011">
</span><span class="c011">:</span><span class="c011"><span class="c006">Organization</span></span><span class="c011"> </span><span class="c011"><span class="c003">CLOSED</span></span><span class="c011"> </span><span class="c011"><span class="c003">EXTRA</span></span><span class="c011"> </span><span class="c011"><span class="c003">a</span></span><span class="c011"> { </span><span class="c011"><span class="c003">a</span></span><span class="c011"> [ </span><span class="c011"><span class="c004">org</span></span><span class="c011">:</span><span class="c011"><span class="c006">Organization</span></span><span class="c011"> ] ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">rdfs</span></span><span class="c011">:</span><span class="c011"><span class="c006">label</span></span><span class="c011"> </span><span class="c011"><span class="c004">xsd</span></span><span class="c011">:</span><span class="c011"><span class="c006">string</span></span><span class="c011"> ;</span><span class="c011">
</span><span class="c011"> </span><span class="c011"><span class="c004">foaf</span></span><span class="c011">:</span><span class="c011"><span class="c006">homepage</span></span><span class="c011"> </span><span class="c011"><span class="c003">IRI</span></span><span class="c011">
</span><span class="c011">}</span></td></tr>
</table>
<footer>
<iframe src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbook.validatingrdf.com%2F&width=100&layout=standard&action=like&size=small&show_faces=true&share=true&height=80&appId=8170400788" width="100" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
<a class="twitter-share-button" text="Validating RDF data book" href="https://twitter.com/intent/tweet?text=Validating%20RDF%20data%20book&?via=jelabra&hastags=shex,shacl,validatingrdfbook" data-size="large">Tweet</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5a51d2b6b0d22f0a"></script>
</footer>
<hr>
<a href="bookHtml013.html"><img src="previous_motif.gif" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.gif" alt="Up"></a>
<a href="bookHtml015.html"><img src="next_motif.gif" alt="Next"></a>
</body>
</html>