Skip to content
/ grlcR Public

R package to retrieve sparql queries stored in grlc format

License

Notifications You must be signed in to change notification settings

CLARIAH/grlcR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grlcR

R package to retrieve sparql queries stored in grlc format

To install & load run:

# install.packages("devtools") # uncomment if not installed yet
devtools::install_github("CLARIAH/grlcR", subdir = "grlcR")
library(grlcR)
# Examples
repo_summary("albertmeronyo/lodapi")

# not run
# repo_summary("CLARIAH/wp4-queries") #takes forever

# retrieve results from sparql query
hisq <- repo_summary("CLARIAH/wp4-queries-hisco")
hisq
df <- repo_query(hisq, 2) # 2 being the second of the sparql queries in this repo
str(df) # notice that df exits of 2 data.frames

# extract values from a uri (e.g. retrieve 'value' from 'http(s)://.../..../value')
df$hisco$code <- sapply(df$hisco$value, uri_value)
df$hisco

About

R package to retrieve sparql queries stored in grlc format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages