Skip to content

Instantly share code, notes, and snippets.

View regisrob's full-sized avatar

Régis Robineau regisrob

View GitHub Profile
@regisrob
regisrob / rs-schema-location.json
Last active November 24, 2016 10:24
RS schema.org : Location
{
"@context": "http://schema.org/",
"@type": "Place",
"url": "{URL_PAGE_LOCATION}",
"name": "{TITLE_PAGE_LOCATION}",
"alternateName": "{./Place/Name}",
"geo": {
"@type": "GeoCoordinates",
"latitude": "{LAT_LOCATION}",
"longitude": "{LONG_LOCATION}"
@regisrob
regisrob / rs-schema-corporateBody.json
Last active November 24, 2016 10:25
RS schema.org: corporateBody
{
"@context": "http://schema.org/",
"@type": "Organization",
"url": "{URL_PAGE_CORPORATEBODY}",
"name": "{TITLE_PAGE_CORPORATEBODY}",
"alternateName": "{./Repository/Name}",
"sameAs": "{./Repository/Concept}",
"address": {
"@type": "PostalAddress",
"addressCountry": "{./Repository/Country}",
@regisrob
regisrob / rs-schema-feature.json
Created November 24, 2016 12:52
RS schema.org : Feature
{
"@context": "http://schema.org/",
"@type": "CreativeWork",
"url": "{URL_PAGE_FEATURE}",
"name": "{TITLE_PAGE_FEATURE}",
"description": "{./Book/HasFeature/Caption}",
"genre": "{./Book/HasFeature/FeatureType}",
"thumbnailUrl": "{./Book/HasFeature/Thumbnail}",
"image": "{./Book/HasFeature/DigitalSurrogate}",
"keywords": "{./Book/HasFeature/Descriptor/Name}, {./Book/HasFeature/Descriptor/Name}",
@regisrob
regisrob / rs-schema-inventory.json
Last active November 24, 2016 14:22
RS schema.org : Inventory
{
"@context": "http://schema.org/",
"@type": "Book",
"url": "{URL_PAGE_INVENTORY}",
"name": "{./Collection/Inventory/Title}",
"encoding": [
{
"@type": "MediaObject",
"url": "{./Collection/Inventory/DigitalSurrogate}"
},
@regisrob
regisrob / rs-schema-book.json
Last active November 24, 2016 14:26
RS schema.org : Book
{
"@context": "http://schema.org/",
"@type": "Book",
"url": "{URL_PAGE_BOOK}",
"name": "{TITLE_PAGE_BOOK}",
"alternateName": "{./Book/Name}",
"numberOfPages": "{./Book/Extent}",
"genre": "{./Book/ObjectType}",
"thumbnailUrl": "{./Book/Thumbnail}",
"sameAs": "{./Book/Concept}",
@regisrob
regisrob / rs-schema-work.json
Last active November 24, 2016 14:35
RS schema.org : Work
{
"@context": "http://schema.org/",
"@type": "CreativeWork",
"url": "{URL_PAGE_WORK}",
"name": "{./Work/Title_Bbma}",
"alternativeHeadline": "{./Work/Title}",
"sameAs": "{./Work/Concept}",
"description": "{./Work/Note}",
"author": {
"@type": "Person",
@regisrob
regisrob / rs-schema-text.json
Last active November 24, 2016 14:38
RS schema.org : Text
{
"@context": "http://schema.org/",
"@type": "CreativeWork",
"url": "{URL_PAGE_TEXT}",
"name": "{TITLE_PAGE_TEXT}",
"alternateName": "{cw_title}",
"description": "{./Work/Text/Note}",
"inLanguage": "{./Work/Text/Language}",
"author": {
"@type": "Person",
@regisrob
regisrob / rs-schema-edition.json
Last active November 24, 2016 14:45
RS schema.org : Edition
{
"@context": "http://schema.org/",
"@type": "CreativeWork",
"url": "{URL_PAGE_EDITION}",
"name": "{TITLE_PAGE_EDITION}",
"alternateName": "{./Manifestation/Text/Title}",
"locationCreated": {
"@type": "Place",
"name": "{./Manifestation/Place/Name}",
"url": "{URL_PAGE_LOCATION}"
@regisrob
regisrob / sparql-iiif-annotations.txt
Last active October 15, 2017 07:52
SPARQL query to retrieve and display IIIF image annotations (created with Mirador and SimpleAnnotationServer, stored in Sesame). See http://demos.biblissima-condorcet.fr/ovide-moralise/
PREFIX exif: <http://www.w3.org/2003/12/exif/ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX cnt: <http://www.w3.org/2011/content#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX sc: <http://iiif.io/api/presentation/2#>
PREFIX sc1: <http://www.shared-canvas.org/ns/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX oa: <http://www.w3.org/ns/oa#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
@regisrob
regisrob / anno_list_choice.json
Last active February 22, 2020 21:16
Recolnat annotation IIIF : Choice avec FragmentSelector et SvgSelector
{
"@context" : "http://iiif.io/api/presentation/2/context.json",
"@id" : "https://collections.recolnat.org/annotate-server/iiif/2/annotationList/30/febbe57672bb5eaf097de6c5448c43ad8a82e012/list",
"@type" : "sc:AnnotationList",
"resources" : [
{
"@id" : "https://collections.recolnat.org/annotate-server/iiif/2/annotationList/30/febbe57672bb5eaf097de6c5448c43ad8a82e012/list/1",
"@type" : "oa:Annotation",
"motivation" : ["oa:commenting", "oa:tagging"],
"resource" : [