add_item_to_rdf: Add triplet to and RDF object

View source: R/harmonised-writing.R

add_item_to_rdfR Documentation

Add triplet to and RDF object

Description

This function adds a triplet to an RDF object. Classes, data properties and object properties can be defined to a certain subject.

Usage

add_item_to_rdf(
  object,
  subject,
  classes = NULL,
  dataProperties = NULL,
  objectProperties = NULL,
  namespaces = NULL
)

Arguments

object

<rdf> base object.

subject

<uri> containing the subject of the new item.

classes

<uri(s)> containing the subject(s) name(s) in the ontology related with this item.

dataProperties

<list> containing data properties of the triplet. It is literal information, no connections to other subjects of the RDF.

objectProperties

<list> containing object properties of the triplet. It consists on links to other items of the RDF.

namespaces

named <array> that relates simple namespaces and complete ones.

Value

<rdf> object with the new item added.


biggproject/biggr documentation built on Oct. 2, 2024, 11:13 p.m.