geoflow_skos_vocabulary: Geoflow SKOS vocabulary class

geoflow_skos_vocabularyR Documentation

Geoflow SKOS vocabulary class

Description

This class models a SKOS vocabulary

Format

R6Class object.

Details

geoflow_skos_vocabulary

Value

Object of R6Class for modelling a SKOS vocabulary

Super class

geoflow::geoflow_vocabulary -> geoflow_skos_vocabulary

Public fields

rdf

rdf

rdf_data

rdf_data

endpoint

endpoint

Methods

Public methods

Inherited methods

Method new()

Initializes a vocabulary

Usage
geoflow_skos_vocabulary$new(id, def, uri, endpoint = NULL, file = NULL)
Arguments
id

id

def

def

uri

uri

endpoint

A Sparql endpoint

file

a RDF file


Method query()

query

Usage
geoflow_skos_vocabulary$query(str, graphUri = NULL, mimetype = "text/csv")
Arguments
str

str

graphUri

graphUri

mimetype

mimetype

Returns

the response of the SPARQL query


Method query_full_dataset()

Queries full dataset

Usage
geoflow_skos_vocabulary$query_full_dataset()
Returns

an object of class tibble


Method ping()

Ping query

Usage
geoflow_skos_vocabulary$ping()

Method list_collections()

list_collections

Usage
geoflow_skos_vocabulary$list_collections(
  mimetype = "text/csv",
  count_sub_collections = TRUE,
  count_concepts = TRUE
)
Arguments
mimetype

mimetype

count_sub_collections

count_sub_collections. Default is TRUE

count_concepts

count_concepts. Default is TRUE

Returns

the response of the SPARQL query


Method get_concepts_hierarchy()

list_concepts

Usage
geoflow_skos_vocabulary$get_concepts_hierarchy(
  lang = "en",
  method = c("SPARQL", "R"),
  out_format = c("tibble", "list")
)
Arguments
lang

lang

method

method used to build the hierarchy, either "SPARQL" or "R"

out_format

output format (tibble or list). Default is "tibble"

Returns

the response of the SPARQL query


Method list_concepts()

list_concepts

Usage
geoflow_skos_vocabulary$list_concepts(lang = "en", mimetype = "text/csv")
Arguments
lang

lang

mimetype

mimetype

Returns

the response of the SPARQL query


Method query_from_uri()

query_from_uri

Usage
geoflow_skos_vocabulary$query_from_uri(
  uri,
  graphUri = NULL,
  mimetype = "text/csv"
)
Arguments
uri

uri

graphUri

graphUri

mimetype

mimetype

Returns

an object of class tibble


Method query_from_term()

query_from_term

Usage
geoflow_skos_vocabulary$query_from_term(
  term,
  graphUri = NULL,
  mimetype = "text/csv"
)
Arguments
term

term

graphUri

graphUri

mimetype

mimetype

Returns

an object of class tibble


Method clone()

The objects of this class are cloneable with this method.

Usage
geoflow_skos_vocabulary$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


geoflow documentation built on Dec. 12, 2025, 5:08 p.m.