Skip to content

Instantly share code, notes, and snippets.

@fils
Created March 16, 2017 18:17
Show Gist options
  • Select an option

  • Save fils/d7b3266dc5eedebbce7bfd5dc0662654 to your computer and use it in GitHub Desktop.

Select an option

Save fils/d7b3266dc5eedebbce7bfd5dc0662654 to your computer and use it in GitHub Desktop.
{
"@context": "http://schema.org/",
"@type": "Organization",
"name": "R2R",
"contactPoint": {
"@type": "ContactPoint",
"contactType": "Administrator",
"url": "http://www.ldeo.columbia.edu/user/arko",
"name": "Bob Arko",
"email": "nemo@nobody.com"
},
"url": "http://www.rvdata.us",
"mainEntityOfPage": [{
"@type": "DigitalDocument",
"fileformat": "OGC WxS",
"keywords": "OGC Wxs",
"description": "OGC Web Feature and other services",
"url": "http://api.rvdata.us/gis"
},
{
"@type": "DigitalDocument",
"fileformat": "OGC CSV",
"keywords": "OGC CSV",
"description": "OGC coverage description document",
"url": "http: //api.rvdata.us/catalog"
},
{
"@type": "DigitalDocument",
"fileformat": "OGC CSV",
"keywords": "SPARQL",
"description": "R2R SPARQL end point",
"url": "http: //data.rvdata.us/sparql"
}
]
}
@fils

fils commented Mar 16, 2017

Copy link
Copy Markdown
Author

This is just a simple example of trying to encode some of info as schema.org. The testing tools throughs some errors on contact type that don't line up with the property and expected Type. Likely some issue with the schema published and the schema used to test with.

The use of "DigitalDocument" is a bit of an overloading. (as in it is an overloading). Works as a placeholder for now and perhaps there is a better type with relation with Organization we can use.

@ashepherd

Copy link
Copy Markdown

what about using the Service class for describing the services instead of mainEntityOfPage?

JSON-LD: https://gist.github.com/ashepherd/562a68ecbd7303c0600602f652241ba7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment