# Create object triplestore
triplestore <- triplestore_access$new()
# Set options to access a specific triple-store implemented in GraphDB
triplestore$set_access_options(
url = "https://graphdb.fortunalab.org",
user = "public_avida",
password = "public_avida",
repository = "avidaDB_test"
)
# Show current access options
triplestore$get_access_options()
# Querying data with SPARQL
triplestore$submit_query('PREFIX rdfs:
PREFIX xsd:
select ?tandem_id where {
?digital_tandem_repeat rdfs:label "digital tandem repeat"@en .
?tandem_id a ?digital_tandem_repeat .
} limit 10')
# Show ontology info
triplestore$ontology()
Run the code above in your browser using DataLab