tests/testthat/test-utilities.R

context("utilities")

test_that("we can correctly set prefix formats", {

  uri_prefix(  "http://namespace.com/" )
  uri_prefix(  "http://namespace.com/terms#" )
  
  expect_match( uri_prefix( "schema" ), "schema:")
  expect_match( uri_prefix( "schema:" ), "schema:") 
})

Try the rdflib package in your browser

Any scripts or data that you put into this service are public.

rdflib documentation built on Sept. 16, 2023, 9:07 a.m.