From a651c599c1efeb125a121ea2ae47680257bc604d Mon Sep 17 00:00:00 2001 From: Carl Date: Mon, 3 Jan 2022 19:04:19 +0000 Subject: [PATCH] conditional vignette --- DESCRIPTION | 1 - vignettes/rdf_intro.Rmd | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c457238..b135665 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -31,7 +31,6 @@ Description: The Resource Description Framework, or 'RDF' is a widely used interface takes inspiration from the Python 'rdflib' library. License: MIT + file LICENSE Encoding: UTF-8 -LazyData: true URL: https://github.com/ropensci/rdflib BugReports: https://github.com/ropensci/rdflib/issues Imports: diff --git a/vignettes/rdf_intro.Rmd b/vignettes/rdf_intro.Rmd index e0bfbd6..0b4ab01 100644 --- a/vignettes/rdf_intro.Rmd +++ b/vignettes/rdf_intro.Rmd @@ -13,6 +13,8 @@ vignette: > ```{r include=FALSE} options(rdf_print_format = "nquads") +is_linux <- Sys.info()["sysname"] == "Linux" +knitr::opts_chunk$set(eval=is_linux) ``` In the world of data science, RDF is a bit of an ugly duckling. Like XML and Java, only without the massive-adoption-that-refuses-to-die part. In fact RDF is most frequently expressed in XML, and RDF tools are written in Java, which help give RDF has the aesthetics of *steampunk*, of some technology for some futuristic Semantic Web[^1] in a toolset that feels about as lightweight and modern as iron dreadnought. @@ -393,8 +395,7 @@ rdf_query(rdf, sparql) ``` -## Multi-table queries & non-rectangular data - -In the following vignette, "The Data Lake and Schema On Read," we explore more complex examples with multiple tables from a relational database and nested JSON data. These highlight the power of SPARQL as a *Graph* query language. - - +```{r include=FALSE} +unlink("rdf.nq") +unlink("example.json") +```