Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Created December 8, 2011 14:24
Show Gist options
  • Select an option

  • Save BigBlueHat/1447122 to your computer and use it in GitHub Desktop.

Select an option

Save BigBlueHat/1447122 to your computer and use it in GitHub Desktop.
Description of a Project JSON format - aka DOAP.json
Description of a Project (DOAP) is an RDF format created by Edd Dumbill:
http://trac.usefulinc.com/doap/
This JSON version goes a bit farther than the RDF format by including historic release tracking and supporting download links for various platforms and architectures.
Further work could be done to bring this JSON format closer to the RDF format and provide conversions between the two (or to an updated RDF format), but it's not on my current roadmap. Feel free to fork and iterate as you'd like--if you do, I'd love to know! :)
"programming-language" tag in DOAP is now "programming-languages"
"release" tag in DOAP is "releases"
"releases" now contains an object with "latest" and (optionally) "previous" children.
"releases.latest" contains an object.
"releases.previous" contains an array of objects like the one in "latest"
{
"name": "",
"homepage": "http://...",
"shortdesc": "",
"description": "",
"bug-database": "http://...",
"mailing-list": "http://...",
"download-page": "http://...",
"programming-languages": [
"Erlang",
"JavaScript"
],
"releases": {
"latest": {
"version": "1.8.2",
"created": "2011-12-08",
"release_notes": "blah blah blah",
"manual": "http://...",
"downloads": [
{
"os": "Windows",
"arch": "32-bit",
"url": "http://...tar.gaz",
"md5": "",
"release_notes": "additional blah blah"
},
{
"os": "Ubuntu/Debian Package",
"arch": "32-bit",
"url": "http://...tar.gaz",
"md5": "",
"release_notes": "additional blah blah"
}
]
},
"previous": [
{
"version": "1.8.0",
"release_notes": "blah blah blah",
"manual": "http://...",
"downloads": [
{
"os": "Windows",
"arch": "32-bit",
"url": "http://...tar.gaz",
"md5": "",
"release_notes": "additional blah blah"
},
{
"os": "Ubuntu/Debian Package",
"arch": "32-bit",
"url": "http://...tar.gaz",
"md5": "",
"release_notes": "additional blah blah"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment