new_source {ontologics} | R Documentation |
Add a new valid source to an ontology
Description
Add a new valid source to an ontology
Usage
new_source(
ontology = NULL,
name = NULL,
version = NULL,
date = NULL,
description = NULL,
homepage = NULL,
uri_prefix = NULL,
license = NULL,
notes = NULL
)
Arguments
ontology |
|
name |
|
version |
|
date |
|
description |
|
homepage |
|
uri_prefix |
|
license |
|
notes |
|
Details
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.
Value
the updated ontology that contains the new source defined here.
Examples
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)