From 8d130a5ea5f9986862a0b8ac08709d4320c3b8f8 Mon Sep 17 00:00:00 2001 From: Xiaoqi Zhao Date: Fri, 4 Oct 2024 10:42:07 +0800 Subject: [PATCH] learning --- test/ex122.ttl | 14 ++++++++++++++ test/ex125.ttl | 9 +++++++++ test/ex178.rq | 23 +++++++++++++++++++++++ test/ex180.rq | 13 +++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 test/ex122.ttl create mode 100644 test/ex125.ttl create mode 100644 test/ex178.rq create mode 100644 test/ex180.rq diff --git a/test/ex122.ttl b/test/ex122.ttl new file mode 100644 index 0000000..7829ca2 --- /dev/null +++ b/test/ex122.ttl @@ -0,0 +1,14 @@ +# filename: ex122.ttl + +@prefix ab: . +@prefix d: . + +# People + +d:i5433 ab:firstName "Katherine" ; + ab:lastName "Duncan" ; + ab:email "katherine.duncan@elpaso.com" . + +d:i2194 ab:firstName "Bradley" ; + ab:lastName "Perry" ; + ab:email "bradley.perry@corning.com" . \ No newline at end of file diff --git a/test/ex125.ttl b/test/ex125.ttl new file mode 100644 index 0000000..d216924 --- /dev/null +++ b/test/ex125.ttl @@ -0,0 +1,9 @@ +# filename: ex125.ttl + +@prefix ab: . +@prefix d: . + +# Courses + +d:course42 ab:courseTitle "Combining Public and Private RDF Data" . +d:course24 ab:courseTitle "Using Name Graphs" . \ No newline at end of file diff --git a/test/ex178.rq b/test/ex178.rq new file mode 100644 index 0000000..35ba8ad --- /dev/null +++ b/test/ex178.rq @@ -0,0 +1,23 @@ +# ex178.rq + +PREFIX cat: +PREFIX foaf: +PREFIX gp: +PREFIX owl: +PREFIX rdf: +PREFIX rdfs: +PREFIX skos: + +# SELECT ?dbpProperty ?dbpValue ?gutenProperty ?gutenValue +CONSTRUCT { + ?dbpProperty ?dbpValue . + gp:Hocking_Joseph ?gutenProperty ?gutenValue . +} +WHERE { + SERVICE { + ?dbpProperty ?dbpValue . + } + SERVICE { + gp:Hocking_Joseph ?gutenProperty ?gutenValue . + } +} \ No newline at end of file diff --git a/test/ex180.rq b/test/ex180.rq new file mode 100644 index 0000000..f9449e9 --- /dev/null +++ b/test/ex180.rq @@ -0,0 +1,13 @@ +PREFIX ab: + +# CONSTRUCT { +# ?course ab:courseTitle ?courseName . +# } +SELECT * +# FROM NAMED +FROM NAMED +WHERE { + GRAPH { + ?course ab:courseTitle ?courseName + } +} \ No newline at end of file