Skip to content

Instantly share code, notes, and snippets.

@acka47
acka47 / serendipity-only-orgs
Created February 12, 2014 10:15
orgs described in serendipity map data that aren't part of OCW consortium
{
"consortiumURL" : "http://www.universia.net/",
"ocwURL" : "Flamenco?q=UniversityName:33&group=UniversityName",
"universityContinent" : "North America",
"universityLogo" : "http://www.anahuac.mx/images/stories/contenido/la_universidad/logo_universidad_anahuac_chico.gif",
"universityOCWURL" : "http://educommons.anahuac.mx:8080/eduCommons/",
"universityURL" : "http://www.anahuac.mx/",
"universityCountry" : "Mexico",
"universityURI" : "http://dbpedia.org/resource/Universidad_An%C3%A1huac_M%C3%A9xico_Norte",
"universityLong" : "-99.267674",
@acka47
acka47 / owm-datamodel.example.csv
Created June 2, 2015 08:41
owm datamodel doc
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 5.
resource, property, description, type, expected values, format
Person, @id, The person's unique identifier, string, -
Person, @type, The type of the resource., string, "Person", -
Person, email, An email account of the person., string, - , email
Person, workLocation, A "Place" resource., Place, - , -
Place, @id, The person's unique identifier, string, -
Place, @type, The type of the resource., string, "Place", -
Place, geo location, A "GeoCoordinates" resource, GeoCoordinates, -, -
Place, address, A "PostalAddress" resource, PostalAddress, -, -
GeoCoordinates, @id, The person's unique identifier, string, -
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
dbs-id;bibliothek;plz
;Stadtbücherei Wernau;73249
WG548;Stadtbibliothek Stavenhagen;17153
;Stadt- und Schulbücherei Gunzenhausen;91710
WH759;Gemeindebibliothek Hohenleipisch;4934
;Kinder- und Jugendbibliothek Hüfingen;78183
HJ874;Stadtbücherei Mayen;56727
AL145;Stadtbibliothek Kempten;87439
GY312;Stadtbibliothek Heubach;73540
;Bibliothek Hamburger Kunsthalle;20095
@acka47
acka47 / cccoer.json
Created December 1, 2015 08:21
cccoer.json file POSTed to oerworldmap.org (see https://github.com/hbz/oerworldmap/issues/469)
{
"image" : "http://www.oeconsortium.org/wp-content/uploads/2013/11/logo-3-web-300x169.jpg",
"contactPoint" : [ ],
"@type" : "Organization",
"created" : [ ],
"participantIn" : [ ],
"agentIn" : [ ],
"description" : [ {
"@value" : "The Community College Consortium for Open Educational Resources (CCCOER) at the Open Education Consortium is composed of over 250 community and technical colleges representing individual, regional, and statewide consortia members in 17 North American states and provinces. It promotes open educational resources, open textbooks, and open courseware to expand access to higher education and improve teaching and learning.",
"@language" : "en"
@acka47
acka47 / gist:e4786a20ccf8429560b7
Created December 3, 2015 08:00
Posting https://beta.oerworldmap.org/resource/urn:uuid:b084ddc2-313a-11e5-a56e-001999ac7927 with "memberOf" OEC (urn:uuid:ff56c436-7e76-11e5-b76b-54ee7558c81f)
This file has been truncated, but you can view the full file.
Failed to update urn:uuid:b084ddc2-313a-11e5-a56e-001999ac7927
com.github.fge.jsonschema.core.report.ListProcessingReport: failure
--- BEGIN MESSAGES ---
error: instance failed to match exactly one schema (matched 0 out of 8)
level: "error"
schema: {"loadingURI":"#","pointer":""}
instance: {"pointer":""}
domain: "validation"
keyword: "oneOf"
matched: 0
@acka47
acka47 / mixed_consortium3.json
Created December 4, 2015 09:09
Edited version of the OEC file created to have the members beack on OEC's oer worldmap page.
{
"image" : "http://www.oeconsortium.org/wp-content/themes/ocwc-mainsite/images/logo.png",
"@type" : "Organization",
"name" : [ {
"@value" : "Open Education Consortium",
"@language" : "en"
} ],
@acka47
acka47 / gnd-context_20160126.jsonld
Created January 26, 2016 13:45
A JSON-LD context for serving data from the Integrated Autority file (GND) as JSON-LD.
{
"@context":{
"gnd":"http://d-nb.info/standards/elementset/gnd#",
"AdministrativeUnit":"gnd:AdministrativeUnit",
"AuthorityResource":"gnd:AuthorityResource",
"BuildingOrMemorial":"gnd:BuildingOrMemorial",
"CharactersOrMorphemes":"gnd:CharactersOrMorphemes",
"Collection":"gnd:Collection",
"CollectiveManuscript":"gnd:CollectiveManuscript",
"CollectivePseudonym":"gnd:CollectivePseudonym",
{
"@context":"http://lobid.org/download/contextTmp-staging.json",
"contribution":[
{
"type": "Contribution",
"role":{
"id":"http://id.loc.gov/vocabulary/relators/cmp",
"label":"Komponist/in"
},
"agent":{
{
"@context":"http://lobid.org/download/contextTmp-staging.json",
"describedby":[
{
"dateCreated":"20020301",
"dateModified":"20130724",
"id":"http://lobid.org/resources/HT013304490"
}
],
"exemplar":[
{
"hbzId":[
"TT002234459"
],
"subjectLabel":[
"Wandern, Diez, Lahnstein, Rhein-Lahn-Info, Rhein, Lahn, Wirtschaftsförderung"
],
"@context":"http://lobid.org/download/contextTmp-staging.json",
"subject":[
{