Package 'r2databus'

Title: An R interface for the DBpedia Databus
Description: Provides tools for uploading, downloading, and annotating data to the DBpedia Databus.
Authors: Anastasis Giannousakis [aut, cre]
Maintainer: Anastasis Giannousakis <[email protected]>
License: BSD_2_clause + file LICENSE
Version: 0.3.0
Built: 2024-11-29 04:23:24 UTC
Source: https://github.com/pik-piam/r2databus

Help Index


r2databus: An R interface for the DBpedia Databus

Description

Provides tools for uploading, downloading, and annotating data to the DBpedia Databus.

Author(s)

Maintainer: Anastasis Giannousakis [email protected]


databusUpload

Description

Publishes a dataset on the Databus (energy.databus.dbpedia.org)

Usage

databusUpload(myKey = NULL, myData = NULL)

Arguments

myKey

a personal and secret API key (can be found or generated under https://energy.databus.dbpedia.org/user#settings)

myData

a list or a path to a JSON file with the dataset's metadata (if missing, defaults from the package's inst folder will be taken)

Author(s)

Anastasis Giannousakis

Examples

## Not run: 
databusUpload(myKey = "a-s3cret-k3y", myData = NULL)

## End(Not run)

Tool: DatabusDownload

Description

This function downloads a dataset (file) and its metadata from the Energy Databus (https://energy.databus.dbpedia.org/) Data are organised in "artifacts" on the databus. An artifact contains one or more datasets (files)

Usage

toolDatabusDownload(
  artifact,
  subtype = NULL,
  databusURL = "https://energy.databus.dbpedia.org"
)

Arguments

artifact

the Databus page hosting the artifact (i.e. one or more datasets and their metadata)

subtype

the specific dataset (file) to download

databusURL

in case another databus hosts the data, e.g. https://databus.dbpedia.org

Value

a list with the metadata associated with the dataset (file)

Author(s)

Anastasis Giannousakis

Examples

## Not run: 
toolDatabusDownload("https://energy.databus.dbpedia.org/giannoupik/GROUPNAME/ARTIFACT/",
"https://energy.databus.dbpedia.org/giannoupik/GROUPNAME/ARTIFACT/YOURVERSION/
ARTIFACT_FOO=BAR_TYPE=SOMEDATATYPE.rdf")

## End(Not run)