-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example of shorter JSON MIME object usage c/o Context Dictionary …
…feature A follow-on patch will generate a Make-managed file. References: * #363 Signed-off-by: Alex Nelson <[email protected]>
- Loading branch information
1 parent
9902977
commit 3fdba5e
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"@context": { | ||
"core": "https://ontology.unifiedcyberontology.org/uco/core/", | ||
"ex-mime": "urn:example:mime:custom:", | ||
"kb": "http://example.org/kb/", | ||
"observable": "https://ontology.unifiedcyberontology.org/uco/observable/", | ||
"observable:mimeType": { | ||
"@type": "@id" | ||
}, | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"skos": "http://www.w3.org/2004/02/skos/core#", | ||
"types": "https://ontology.unifiedcyberontology.org/uco/types/" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "ex-mime:application/gzip", | ||
"@type": "types:IANAMediaType", | ||
"rdfs:comment": "This is a custom media type individual, designed for just this unit test. A larger taxonomy of individuals should be used outside of testing contexts.", | ||
"skos:notation": "application/gzip" | ||
}, | ||
{ | ||
"@id": "kb:file-8", | ||
"@type": "observable:File", | ||
"core:hasFacet": [ | ||
{ | ||
"@type": "observable:ContentDataFacet", | ||
"observable:mimeType": "ex-mime:application/gzip" | ||
}, | ||
{ | ||
"@type": "observable:FileFacet", | ||
"observable:fileName": "8.gz" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters