Previous Up Next
Validating RDF data

Appendix A  WebIndex in ShEx

The following code contains the schema of the WebIndex in ShEx that was described in Section 6.1.1.

prefix : <http://example.org/> prefix sh: <http://www.w3.org/ns/shacl#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix wf: <http://data.webfoundation.org#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix qb: <http://purl.org/linked-data/cube#> prefix cex: <http://purl.org/weso/ontology/computex#> prefix dct: <http://purl.org/dc/terms/> prefix skos: <http://www.w3.org/2004/02/skos/core#> prefix foaf: <http://xmlns.com/foaf/0.1/> prefix org: <http://www.w3.org/ns/org#> :Country { rdfs:label xsd:string ; wf:iso2 LENGTH 2 } :DataSet { a [ qb:DataSet ] ; qb:structure [ wf:DSD ] ; rdfs:label xsd:string ; qb:slice @:Slice* ; dct:publisher @:Organization } :Slice { a [ qb:Slice ] ; qb:sliceStructure [ wf:sliceByYear ] ; qb:observation @:Observation* ; cex:indicator @:Indicator } :Observation { a [ qb:Observation ] ; a [ wf:Observation ] ; cex:value xsd:float ; rdfs:label xsd:string ? ; dct:issued xsd:dateTime ; dct:publisher [ wf:WebFoundation ] ? ; qb:dataSet @:DataSet ; cex:ref-area @:Country ; cex:indicator @:Indicator ; ( cex:computation @:Computation | wf:source IRI ) } :Computation { a [ cex:Computation ] } :Indicator { a [ wf:PrimaryIndicator wf:SecondaryIndicator ] ; rdfs:label xsd:string ; wf:provider @:Organization ; } :Organization CLOSED EXTRA a { a [ org:Organization ] ; rdfs:label xsd:string ; foaf:homepage IRI }

Previous Up Next