dat-ecosystem-archive / datBase

Open data sharing powered by Dat [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
http://datbase.org
244 stars 32 forks source link

Add Schema.org context for Dat Explore #615

Open thadguidry opened 6 years ago

thadguidry commented 6 years ago

Here is the essential script for what we currently are exposing in the catalog listing (I think). But correct me if I am wrong. I'd like someone to point me to the area of code where we could begin leveraging Schema.org for published Dat's , then I can help contribute more. The idea is that each Dat would have a script snippet. You can play with it here: http://tinyurl.com/ybt2jyzv

It also seems that we probably want to expand the publish options to the Dat Registry to support more Schema.org context https://docs.datproject.org/publish

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Dataset",
  "name": "${md.title}",
  "author": {
    "name":"${md.author}",
    "sameAs": "${md.twitterSite}"
  },
  "description": "${md.description}",
  "image": "${md.image}",
  "url": "${url}"
}
</script>
teaserbot commented 6 years ago

you want support linked data on dat archives? super cool :sunglasses: