diff --git a/LearningSPARQL.mm b/LearningSPARQL.mm index 39f0840..e1753ce 100644 --- a/LearningSPARQL.mm +++ b/LearningSPARQL.mm @@ -1091,7 +1091,7 @@ Graph Engine (GE) is a distributed in-memory data processing engine, underpinned - + @@ -1100,8 +1100,11 @@ Graph Engine (GE) is a distributed in-memory data processing engine, underpinned - + + + + @@ -1189,7 +1192,7 @@ Graph Engine (GE) is a distributed in-memory data processing engine, underpinned - + diff --git a/LearningSPARQL.pptx b/LearningSPARQL.pptx index 8788b96..f6d17ad 100644 Binary files a/LearningSPARQL.pptx and b/LearningSPARQL.pptx differ diff --git a/ch03/03-02/ex054.ttl b/ch03/03-02/ex054.ttl new file mode 100644 index 0000000..1b57c07 --- /dev/null +++ b/ch03/03-02/ex054.ttl @@ -0,0 +1,21 @@ +# filename: ex054.ttl + +@prefix ab: +@prefix d: + +d:i0432 ab:firstName "Richard" . +d:i0432 ab:lastName "Mutt" . +d:i0432 ab:homeTel "(229) 276-5135" . +d:i0432 ab:nick "Dick" . +d:i0432 ab:email "richard49@hotmail.com" . + +d:i9771 ab:firstName "Cindy" . +d:i9771 ab:lastName "Marchall" . +d:i9771 ab:homeTel "(245) 646-5488" . +d:i9771 ab:email "cindym@gmail.com" . + +d:i8301 ab:firstName "Craig" . +d:i8301 ab:lastName "Ellis" . +d:i8301 ab:workTel "(245) 315-5486" . +d:i8301 ab:email "craigellis@yahoo.com" . +d:i8301 ab:email "c.ellis@usairwaysgroup.com" . \ No newline at end of file diff --git a/ch03/03-02/ex055.rq b/ch03/03-02/ex055.rq new file mode 100644 index 0000000..3058208 --- /dev/null +++ b/ch03/03-02/ex055.rq @@ -0,0 +1,10 @@ +# filename: ex055.rq + +PREFIX ab: + +SELECT ?first ?last ?workTel +WHERE { + ?s ab:firstName ?first ; + ab:lastName ?last ; + ab:workTel ?workTel . +} \ No newline at end of file diff --git a/ch03/03-02/ex057.rq b/ch03/03-02/ex057.rq new file mode 100644 index 0000000..d7e655a --- /dev/null +++ b/ch03/03-02/ex057.rq @@ -0,0 +1,14 @@ +# filename: ex057.rq + +PREFIX ab: + +SELECT ?first ?last ?workTel +WHERE { + ?s ab:firstName ?first ; + ab:lastName ?last . + # above line can be ended either in ";" or ".", no error + OPTIONAL { + ?s ab:workTel ?workTel . + } + +} \ No newline at end of file diff --git a/ch03/03-02/ex059.rq b/ch03/03-02/ex059.rq new file mode 100644 index 0000000..245e6f9 --- /dev/null +++ b/ch03/03-02/ex059.rq @@ -0,0 +1,15 @@ +# filename: ex059.rq + +PREFIX ab: + +SELECT ?first ?last ?workTel ?nick +WHERE { + ?s ab:firstName ?first ; + ab:lastName ?last . + # above line can be ended either in ";" or ".", no error + OPTIONAL { + ?s ab:workTel ?workTel ; + ab:nick ?nick . + } + +} \ No newline at end of file diff --git a/ch03/03-02/ex061.rq b/ch03/03-02/ex061.rq new file mode 100644 index 0000000..c1078de --- /dev/null +++ b/ch03/03-02/ex061.rq @@ -0,0 +1,16 @@ +# filename: ex061.rq + +PREFIX ab: + +SELECT ?first ?last ?workTel ?nick +WHERE { + ?s ab:firstName ?first ; + ab:lastName ?last . + # above line can be ended either in ";" or ".", no error + OPTIONAL { + ?s ab:workTel ?workTel . + } + OPTIONAL { + ?s ab:nick ?nick . + } +} \ No newline at end of file diff --git a/ch03/03-02/ex063.rq b/ch03/03-02/ex063.rq new file mode 100644 index 0000000..5aaa88c --- /dev/null +++ b/ch03/03-02/ex063.rq @@ -0,0 +1,14 @@ +# filename: ex063.rq + +PREFIX ab: + +SELECT ?first ?last +WHERE { + ?s ab:lastName ?last . + OPTIONAL { + ?s ab:nick ?first . + } + OPTIONAL { + ?s ab:firstName ?first . + } +} \ No newline at end of file