From ef8ce032e4ca9d255af4ce2021f02356f485958f Mon Sep 17 00:00:00 2001 From: Jon Phipps Date: Sat, 16 Jun 2012 16:09:54 -0400 Subject: [PATCH] Alternative formats --- mappings_schema_org.json | 274 ++++++++++++++++++++++++++++ mappings_schema_org.n3 | 72 ++++++++ mappings_schema_org.php | 376 +++++++++++++++++++++++++++++++++++++++ mappings_schema_org.rdf | 126 +++++++++++++ mappings_schema_org.ttl | 72 ++++++++ 5 files changed, 920 insertions(+) create mode 100644 mappings_schema_org.json create mode 100644 mappings_schema_org.n3 create mode 100644 mappings_schema_org.php create mode 100644 mappings_schema_org.rdf create mode 100644 mappings_schema_org.ttl diff --git a/mappings_schema_org.json b/mappings_schema_org.json new file mode 100644 index 0000000..dda8dd8 --- /dev/null +++ b/mappings_schema_org.json @@ -0,0 +1,274 @@ +{ + "http://dublincore.org/mappings/schema.org/" : { + "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ + { + "value" : "http://www.w3.org/2002/07/owl#Ontology", + "type" : "uri" + } + ] + }, + "schema:Organization" : { + "http://www.w3.org/2000/01/rdf-schema#subClassOf" : [ + { + "value" : "dct:Agent", + "type" : "uri" + } + ] + }, + "schema:Person" : { + "http://www.w3.org/2000/01/rdf-schema#subClassOf" : [ + { + "value" : "dct:Agent", + "type" : "uri" + } + ] + }, + "schema:Place" : { + "http://www.w3.org/2002/07/owl#equivalentClass" : [ + { + "value" : "dct:Location", + "type" : "uri" + } + ] + }, + "schema:Event" : { + "http://www.w3.org/2002/07/owl#equivalentClass" : [ + { + "value" : "dctype:Event", + "type" : "uri" + } + ] + }, + "schema:Language" : { + "http://www.w3.org/2000/01/rdf-schema#subClassOf" : [ + { + "value" : "dct:LinguisticSystem", + "type" : "uri" + } + ] + }, + "dct:BibliographicResource" : { + "http://www.w3.org/2000/01/rdf-schema#subClassOf" : [ + { + "value" : "schema:CreativeWork", + "type" : "uri" + } + ] + }, + "dct:title" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "schema:name", + "type" : "uri" + } + ] + }, + "schema:description" : { + "http://www.w3.org/2002/07/owl#equivalentProperty" : [ + { + "value" : "dct:description", + "type" : "uri" + } + ] + }, + "schema:caption" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:description", + "type" : "uri" + } + ] + }, + "schema:author" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:creator", + "type" : "uri" + } + ] + }, + "schema:about" : { + "http://www.w3.org/2002/07/owl#equivalentProperty" : [ + { + "value" : "dct:subject", + "type" : "uri" + } + ] + }, + "schema:publisher" : { + "http://www.w3.org/2002/07/owl#equivalentProperty" : [ + { + "value" : "dct:publisher", + "type" : "uri" + } + ] + }, + "schema:datePublished" : { + "http://www.w3.org/2002/07/owl#equivalentProperty" : [ + { + "value" : "dct:issued", + "type" : "uri" + } + ] + }, + "schema:inLanguage" : { + "http://www.w3.org/2002/07/owl#equivalentProperty" : [ + { + "value" : "dc:language", + "type" : "uri" + } + ] + }, + "schema:encodings" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:format", + "type" : "uri" + } + ] + }, + "schema:duration" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:extent", + "type" : "uri" + } + ] + }, + "schema:keywords" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dc:subject", + "type" : "uri" + } + ] + }, + "schema:url" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:identifier", + "type" : "uri" + } + ] + }, + "schema:contentLocation" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:coverage", + "type" : "uri" + } + ] + }, + "schema:subEvents" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:hasPart", + "type" : "uri" + } + ] + }, + "schema:superEvent" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:isPartOf", + "type" : "uri" + } + ] + }, + "schema:contributor" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:contributor", + "type" : "uri" + } + ] + }, + "schema:illustrator" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:contributor", + "type" : "uri" + } + ] + }, + "schema:actors" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:contributor", + "type" : "uri" + } + ] + }, + "schema:director" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:contributor", + "type" : "uri" + } + ] + }, + "schema:musicBy" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:contributor", + "type" : "uri" + } + ] + }, + "schema:producer" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:creator", + "type" : "uri" + } + ] + }, + "schema:productionCompany" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:creator", + "type" : "uri" + } + ] + }, + "schema:productId" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:identifier", + "type" : "uri" + } + ] + }, + "schema:commentTime" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:date", + "type" : "uri" + } + ] + }, + "schema:birthDate" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:date", + "type" : "uri" + } + ] + }, + "schema:dateModified" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:modified", + "type" : "uri" + } + ] + }, + "schema:mentions" : { + "http://www.w3.org/2000/01/rdf-schema#subPropertyOf" : [ + { + "value" : "dct:related", + "type" : "uri" + } + ] + } +} \ No newline at end of file diff --git a/mappings_schema_org.n3 b/mappings_schema_org.n3 new file mode 100644 index 0000000..1d5549c --- /dev/null +++ b/mappings_schema_org.n3 @@ -0,0 +1,72 @@ +@prefix rdf: . +@prefix owl: . +@prefix rdfs: . +@prefix dc: . + + a owl:Ontology . + + rdfs:subClassOf . + + rdfs:subClassOf . + + owl:equivalentClass . + + owl:equivalentClass . + + rdfs:subClassOf . + + rdfs:subClassOf . + + rdfs:subPropertyOf . + + owl:equivalentProperty . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + owl:equivalentProperty . + + owl:equivalentProperty . + + owl:equivalentProperty . + + owl:equivalentProperty dc:language . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf dc:subject . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . diff --git a/mappings_schema_org.php b/mappings_schema_org.php new file mode 100644 index 0000000..e6cbf15 --- /dev/null +++ b/mappings_schema_org.php @@ -0,0 +1,376 @@ +array ( + 'http://dublincore.org/mappings/schema.org/' => + array ( + 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' => + array ( + 0 => + array ( + 'value' => 'http://www.w3.org/2002/07/owl#Ontology', + 'type' => 'uri', + ), + ), + ), + 'schema:Organization' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subClassOf' => + array ( + 0 => + array ( + 'value' => 'dct:Agent', + 'type' => 'uri', + ), + ), + ), + 'schema:Person' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subClassOf' => + array ( + 0 => + array ( + 'value' => 'dct:Agent', + 'type' => 'uri', + ), + ), + ), + 'schema:Place' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentClass' => + array ( + 0 => + array ( + 'value' => 'dct:Location', + 'type' => 'uri', + ), + ), + ), + 'schema:Event' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentClass' => + array ( + 0 => + array ( + 'value' => 'dctype:Event', + 'type' => 'uri', + ), + ), + ), + 'schema:Language' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subClassOf' => + array ( + 0 => + array ( + 'value' => 'dct:LinguisticSystem', + 'type' => 'uri', + ), + ), + ), + 'dct:BibliographicResource' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subClassOf' => + array ( + 0 => + array ( + 'value' => 'schema:CreativeWork', + 'type' => 'uri', + ), + ), + ), + 'dct:title' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'schema:name', + 'type' => 'uri', + ), + ), + ), + 'schema:description' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentProperty' => + array ( + 0 => + array ( + 'value' => 'dct:description', + 'type' => 'uri', + ), + ), + ), + 'schema:caption' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:description', + 'type' => 'uri', + ), + ), + ), + 'schema:author' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:creator', + 'type' => 'uri', + ), + ), + ), + 'schema:about' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentProperty' => + array ( + 0 => + array ( + 'value' => 'dct:subject', + 'type' => 'uri', + ), + ), + ), + 'schema:publisher' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentProperty' => + array ( + 0 => + array ( + 'value' => 'dct:publisher', + 'type' => 'uri', + ), + ), + ), + 'schema:datePublished' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentProperty' => + array ( + 0 => + array ( + 'value' => 'dct:issued', + 'type' => 'uri', + ), + ), + ), + 'schema:inLanguage' => + array ( + 'http://www.w3.org/2002/07/owl#equivalentProperty' => + array ( + 0 => + array ( + 'value' => 'dc:language', + 'type' => 'uri', + ), + ), + ), + 'schema:encodings' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:format', + 'type' => 'uri', + ), + ), + ), + 'schema:duration' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:extent', + 'type' => 'uri', + ), + ), + ), + 'schema:keywords' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dc:subject', + 'type' => 'uri', + ), + ), + ), + 'schema:url' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:identifier', + 'type' => 'uri', + ), + ), + ), + 'schema:contentLocation' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:coverage', + 'type' => 'uri', + ), + ), + ), + 'schema:subEvents' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:hasPart', + 'type' => 'uri', + ), + ), + ), + 'schema:superEvent' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:isPartOf', + 'type' => 'uri', + ), + ), + ), + 'schema:contributor' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:contributor', + 'type' => 'uri', + ), + ), + ), + 'schema:illustrator' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:contributor', + 'type' => 'uri', + ), + ), + ), + 'schema:actors' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:contributor', + 'type' => 'uri', + ), + ), + ), + 'schema:director' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:contributor', + 'type' => 'uri', + ), + ), + ), + 'schema:musicBy' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:contributor', + 'type' => 'uri', + ), + ), + ), + 'schema:producer' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:creator', + 'type' => 'uri', + ), + ), + ), + 'schema:productionCompany' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:creator', + 'type' => 'uri', + ), + ), + ), + 'schema:productId' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:identifier', + 'type' => 'uri', + ), + ), + ), + 'schema:commentTime' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:date', + 'type' => 'uri', + ), + ), + ), + 'schema:birthDate' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:date', + 'type' => 'uri', + ), + ), + ), + 'schema:dateModified' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:modified', + 'type' => 'uri', + ), + ), + ), + 'schema:mentions' => + array ( + 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf' => + array ( + 0 => + array ( + 'value' => 'dct:related', + 'type' => 'uri', + ), + ), + ), +) \ No newline at end of file diff --git a/mappings_schema_org.rdf b/mappings_schema_org.rdf new file mode 100644 index 0000000..2c221c8 --- /dev/null +++ b/mappings_schema_org.rdf @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mappings_schema_org.ttl b/mappings_schema_org.ttl new file mode 100644 index 0000000..1d5549c --- /dev/null +++ b/mappings_schema_org.ttl @@ -0,0 +1,72 @@ +@prefix rdf: . +@prefix owl: . +@prefix rdfs: . +@prefix dc: . + + a owl:Ontology . + + rdfs:subClassOf . + + rdfs:subClassOf . + + owl:equivalentClass . + + owl:equivalentClass . + + rdfs:subClassOf . + + rdfs:subClassOf . + + rdfs:subPropertyOf . + + owl:equivalentProperty . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + owl:equivalentProperty . + + owl:equivalentProperty . + + owl:equivalentProperty . + + owl:equivalentProperty dc:language . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf dc:subject . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf . + + rdfs:subPropertyOf .