new_source | R Documentation |
Add a new valid source to an ontology
new_source(
ontology = NULL,
name = NULL,
version = NULL,
date = NULL,
description = NULL,
homepage = NULL,
uri_prefix = NULL,
license = NULL,
notes = NULL
)
ontology |
|
name |
|
version |
|
date |
|
description |
|
homepage |
|
uri_prefix |
|
license |
|
notes |
|
Fundamentally, there are two types of sources that can be defined with this function.
attribute collections: where a collection of terms or concepts are associated as a descriptive attribute to the harmonised concepts, and
linked open data: where the concepts that occur in another vocabulary or ontology and which are themselves part of linked datasets (and hence have a valid URI) are associated as related concepts to the harmonised concepts.
In the latter case, each mapped concept should be provided by its ID and the source needs to have a URL that allows in combination with the concept IDs to construct the URI under which the mapped concepts are stored in the semantic web.
the updated ontology that contains the new source defined here.
ontoDir <- system.file("extdata", "crops.rds", package = "ontologics")
onto <- load_ontology(path = ontoDir)
onto <- new_source(name = "externalDataset",
version = "0.0.1",
description = "a vocabulary",
homepage = "https://www.something.net",
license = "CC-BY-0",
ontology = onto)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.