Play around with JSON-LD markup by typing out some JSON below and seeing what gets generated from it at the bottom of the page. Pick any of the examples below to get started.
{
"@context": {
"hasMedication": {
"@id": "http://smartplatforms.org/terms#hasMedication",
"@type": "@id"
},
"hasDrugCode": {
"@id": "http://smartplatforms.org/terms#hasDrugCode",
"@type": "@id"
}
},
"@graph": [
{
"@id": "medication_lists/1",
"@type": "MedicationList",
"hasMedication": [
"medications/1",
"medications/2",
"medications/3"
]
},
{
"@id": "medications/1",
"@type": "Medication",
"hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/213271",
"@type": "DrugCode",
"title": "sildenafil 100 MG Oral Tablet [Viagra]",
"identifier": "213271"
}
},
{
"@id": "medications/2",
"@type": "Medication",
"hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843",
"@type": "DrugCode",
"title": "glimepiride 1 MG Oral Tablet [Amaryl]",
"identifier": "153843"
}
},
{
"@id": "medications/3",
"@type": "Medication",
"hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843"
}
}
]
}
{
"@context": {
"hasMedication": {
"@id": "http://smartplatforms.org/terms#hasMedication",
"@type": "@id"
},
"hasDrugCode": {
"@id": "http://smartplatforms.org/terms#hasDrugCode",
"@type": "@id"
}
},
"@type": "MedicationList"
}
MIICWwIBAAKBgQC4R1AmYYyE47FMZgo708NhFU+t+VWn133PYGt/WYmD5BnKj679
NOTE: A remote context that is not known to be fully working yet was detected in your input. If you wish, you can use an alternative context created by the JSON-LD community to process your document nevertheless.
Original | Development |
jsonld.SyntaxError: Invalid JSON-LD syntax; invalid @type in frame.Processing error: (See console for details.)
jsonld.SyntaxError: Invalid JSON-LD syntax; invalid @type in frame.Processing error: (See console for details.)
jsonld.SyntaxError: Invalid JSON-LD syntax; invalid @type in frame.
{
"@graph": [
{
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843",
"@type": "DrugCode"
},
{
"@id": "http://purl.bioontology.org/ontology/RXNORM/213271",
"@type": "DrugCode"
},
{
"@id": "medication_lists/1",
"@type": "MedicationList",
"http://smartplatforms.org/terms#hasMedication": [
{
"@id": "medications/1",
"@type": "Medication",
"http://smartplatforms.org/terms#hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/213271",
"@type": "DrugCode"
}
},
{
"@id": "medications/2",
"@type": "Medication",
"http://smartplatforms.org/terms#hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843",
"@type": "DrugCode"
}
},
{
"@id": "medications/3",
"@type": "Medication",
"http://smartplatforms.org/terms#hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843"
}
}
]
},
{
"@id": "medications/1",
"@type": "Medication",
"http://smartplatforms.org/terms#hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/213271",
"@type": "DrugCode"
}
},
{
"@id": "medications/2",
"@type": "Medication",
"http://smartplatforms.org/terms#hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843",
"@type": "DrugCode"
}
},
{
"@id": "medications/3",
"@type": "Medication",
"http://smartplatforms.org/terms#hasDrugCode": {
"@id": "http://purl.bioontology.org/ontology/RXNORM/153843",
"@type": "DrugCode"
}
}
]
}
Subject | Predicate | Object | Language | Datatype | Graph |
---|
Website content released under a Creative Commons CC0 Public Domain Dedication except where an alternate is specified. Part of the PaySwarm standardization initiative.