Skip to content

Instantly share code, notes, and snippets.

@mdroidian
Last active October 23, 2024 02:06
Show Gist options
  • Save mdroidian/4129f36b8a4e3c1f03753a3cf432b28a to your computer and use it in GitHub Desktop.
Save mdroidian/4129f36b8a4e3c1f03753a3cf432b28a to your computer and use it in GitHub Desktop.
// for https://nanodash.knowledgepixels.com/explore?id=RA3daecoHbMKovZpS1nbqvLaKfypCC2YfuVeczBHpYUfQ
{
"@context": {
"@base": "http://purl.org/nanopub/temp/mynanopub#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dc": "http://purl.org/dc/terms/",
"np": "http://www.nanopub.org/nschema#",
"foaf": "http://xmlns.com/foaf/0.1/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"credit": "https://credit.niso.org/contributor-roles/",
"kpxl": "https://w3id.org/kpxl/gen/terms/",
"prov": "http://www.w3.org/ns/prov#"
},
"@id": "#Head",
"@graph": {
"@id": "#",
"@type": "np:Nanopublication",
"np:hasAssertion": {
"@id": "#assertion",
"@graph": [
{
"@id": "#Evidence",
"rdf:type": {
// User provided
// TODO: change to @id
"@value": "https://w3id.org/kpxl/gen/terms/Evidence"
},
"rdfs:label": {
"@value": "example published evd"
},
"dc:description": {
"@value": "<ul><li><h1>header 1</h1> <li>child</li></li> <li><strong>bold</strong> <li>block ref: 5jrU5Hxqq</li></li> <li>image <li><img src=\"https://firebasestorage.googleapis.com/v0/b/firescript-577a2.appspot.com/o/imgs%2Fapp%2Froamjs-dev%2Farmj7gqP-M.jpg?alt=media&token=24be04d1-e1cc-4fe8-9ff4-c3f5e32f1cdf\" alt=\"\"></li></li></ul>"
},
"foaf:page": {
"@value": "https://roamresearch.com/roamjs-dev/page/pfW74_4-F"
}
}
]
},
"np:hasProvenance": {
"@id": "#provenance",
"@graph": [
{
// TODO group by @id
"@id": "#assertion",
"prov:wasAttributedTo": {
// TODO: change to @id
"@value": "https://orcid.org/0009-0007-7555-0030"
}
},
{
"@id": "#assertion",
"credit:data-curation": "Michael Gartner"
},
{
"@id": "#assertion",
"credit:methodology": "Jane Foster"
}
]
},
"np:hasPublicationInfo": {
"@id": "#pubinfo",
"@graph": [
{
// TODO group by @id
"@id": "#",
"dc:creator": {
"@id": "https://orcid.org/0009-0007-7555-0030"
}
},
{
"@id": "#",
"dc:created": {
"@value": "2024-10-23T01:32:45.643Z",
"@type": "xsd:dateTime"
}
},
{
"@id": "#",
"@type": "npx:ExampleNanopub"
},
{
"@id": "#",
"@type": "kpxl:DiscourseGraphNanopub"
},
{
"@id": "#",
"npx:introduces": {
"@id": "#Evidence"
}
},
{
// User provided
"@id": "https://w3id.org/kpxl/gen/terms/Evidence",
"rdfs:label": "Evidence"
},
// aliases
{
"@id": "rdf:type",
"rdfs:label": "is a"
},
{
"@id": "rdfs:label",
"rdfs:label": "has the label"
},
{
"@id": "dc:description",
"rdfs:label": "has the description"
},
{
"@id": "foaf:page",
"rdfs:label": "has more info at"
},
{
"@id": "prov:wasAttributedTo",
"rdfs:label": "is attributed to"
},
{
"@id": "dc:creator",
"rdfs:label": "is created by"
},
{
"@id": "credit:conceptualization",
"rdfs:label": "Conceptualized by"
},
{
"@id": "credit:data-curation",
"rdfs:label": "Data curated by"
},
{
"@id": "credit:formal-analysis",
"rdfs:label": "Formal analysis performed by"
},
{
"@id": "credit:funding-acquisition",
"rdfs:label": "Funding acquired by"
},
{
"@id": "credit:investigation",
"rdfs:label": "Investigated by"
},
{
"@id": "credit:methodology",
"rdfs:label": "Methodology developed by"
},
{
"@id": "credit:project-administration",
"rdfs:label": "Project administered by"
},
{
"@id": "credit:software",
"rdfs:label": "Software developed by"
},
{
"@id": "credit:resources",
"rdfs:label": "Resources provided by"
},
{
"@id": "credit:supervision",
"rdfs:label": "Supervised by"
},
{
"@id": "credit:validation",
"rdfs:label": "Validated by"
},
{
"@id": "credit:visualization",
"rdfs:label": "Visualization created by"
},
{
"@id": "credit:writing-original-draft",
"rdfs:label": "Original draft written by"
},
{
"@id": "credit:writing-review-editing",
"rdfs:label": "Reviewed and edited by"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment