Created
May 19, 2020 14:52
-
-
Save philbarker/995d3120b4bb07503bfc2d21ee821b2a to your computer and use it in GitHub Desktop.
Application Profile in csv and ShEx and a conformant instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID | URI | Label | Type | Value Space | Comment | |
---|---|---|---|---|---|---|
sdo: | http://schema.org/ | schema.org | ||||
foaf: | http://xmlns.com/foaf/ | FOAF | ||||
wd: | http://www.wikidata.org/entity/ | Wikidata Entities | ||||
wdt: | http://www.wikidata.org/prop/direct/ | Wikidata Properties | ||||
xsd: | http://www.w3.org/2001/XMLSchema# | XML Schema | ||||
rdf: | http://www.w3.org/1999/02/22-rdf-syntax-ns# | RDF | ||||
@book | Book | |||||
rdf:type | instance of | URI | sdo:Book | must be schema.org/Book | ||
rdf:type | instance of | URI | wd:Q571 | must be wikidata Book | ||
sdo:name | title | Literal | xsd:string | |||
sdo:author | author | URI | @author | |||
wdt:P127 | owner | URI | @owner | owned by | ||
@author | Author | |||||
rdf:type | instance of | URI | sdo:Person sdo:Organization | must be person or organization | ||
sdo:givenName | given name | Literal | xsd:string | |||
sdo:familyName | family name | Literal | xsd:string | |||
@owner | Owner | |||||
rdf:type | instance of | URI | sdo:Person | |||
rdf:type | instance of | URI | foaf:Person | |||
sdo:givenName | given name | Literal | xsd:string | |||
sdo:familyName | family name | Literal | xsd:string | |||
foaf:knows | friend of | URI | @owner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix book: <http://example.org/bookshare/data/books#> . | |
@prefix member: <http://example.org/bookshare/data/members#> . | |
@prefix author: <http://example.org/bookshare/data/authors#> . | |
@prefix wd: <http://www.wikidata.org/entity/> . | |
@prefix wdt: <http://www.wikidata.org/prop/direct/> . | |
@prefix sdo: <http://schema.org/> . | |
@prefix foaf: <http://xmlns.com/foaf/> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
book:001 a sdo:Book, wd:Q571 ; | |
sdo:name "The Human Factor" ; | |
sdo:author author:001 ; | |
wdt:P127 member:001 , member:002 . # owned by | |
book:002 a sdo:Book, wd:Q571 ; | |
sdo:name "The Comedians" ; | |
sdo:author author:001 ; | |
wdt:P127 member:002 . # owned by | |
author:001 a sdo:Person ; | |
sdo:givenName "Graham" ; | |
sdo:familyName "Greene" . | |
member:001 a sdo:Person, foaf:Person ; | |
sdo:givenName "Greg" ; | |
sdo:familyName "Arious" ; | |
foaf:knows member:002 . | |
member:002 a sdo:Person, foaf:Person ; | |
sdo:givenName "Billy" ; | |
sdo:familyName "No Mates" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX shapes: <http://example.org/bookshare/shapes#> | |
PREFIX sdo: <http://schema.org/> | |
PREFIX foaf: <http://xmlns.com/foaf/> | |
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
shapes:Book { | |
rdf:type [sdo:Book] ; | |
rdf:type [wd:Q571] ; | |
sdo:name xsd:string ; | |
sdo:author IRI @shapes:Author * ; | |
wdt:P127 IRI @shapes:Owner * | |
} | |
shapes:Author { | |
rdf:type [sdo:Person sdo:Organization] ; | |
sdo:givenName xsd:string ; | |
sdo:familyName xsd:string | |
} | |
shapes:Owner { | |
rdf:type [sdo:Person] ; | |
rdf:type [foaf:Person] ; | |
sdo:givenName xsd:string ; | |
sdo:familyName xsd:string ; | |
foaf:knows IRI @shapes:Owner * | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment