-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Xiaoqi Zhao
committed
Oct 9, 2024
1 parent
7664e75
commit c96d711
Showing
11 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# filename: ex012.ttl | ||
|
||
@prefix ab: <http://learningsparql.com/ns/addressbook#> . | ||
@prefix d: <http://learningsparql.com/ns/data#> . | ||
|
||
d:i0432 ab:firstName "Richard" . | ||
d:i0432 ab:lastName "Mutt" . | ||
d:i0432 ab:homeTel "(229) 276-5135" . | ||
d:i0432 ab:email "[email protected]" . | ||
|
||
d:i9771 ab:firstName "Cindy" . | ||
d:i9771 ab:lastName "Marshall" . | ||
d:i9771 ab:homeTel "(245) 646-5488" . | ||
d:i9771 ab:email "[email protected]" . | ||
|
||
d:i8301 ab:firstName "Craig" . | ||
d:i8301 ab:lastName "Ellis" . | ||
d:i8301 ab:email "[email protected]" . | ||
d:i8301 ab:email "[email protected]" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# filename: ex311-1.rq | ||
# from Fuseki sample | ||
|
||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
PREFIX d: <http://learningsparql.com/ns/data#> | ||
|
||
SELECT * | ||
FROM <ex012.ttl> | ||
WHERE { | ||
?sub ?pred ?obj . | ||
} LIMIT 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# filename: ex311.rq | ||
|
||
SELECT * | ||
WHERE { | ||
?s ?p ?o . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# filename: ex312.ru | ||
|
||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
PREFIX d: <http://learningsparql.com/ns/data#> | ||
|
||
INSERT DATA { | ||
d:i8301 ab:homeTel "(718) 440-9281" . | ||
ab:Person a rdfs:Class . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# filename: ex313.ru | ||
|
||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
PREFIX d: <http://learningsparql.com/ns/data#> | ||
|
||
INSERT { | ||
d:i8301 ab:homeTel "(718) 440-9281" . | ||
ab:Person a rdfs:Class . | ||
} | ||
WHERE {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# filename: ex314.rq | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
CONSTRUCT { | ||
?person a ab:Person . | ||
} | ||
WHERE { | ||
?person ab:firstName ?firstName ; | ||
ab:lastName ?lastName . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# filename: ex316.ru | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
INSERT { | ||
?person a ab:Person . | ||
} | ||
WHERE { | ||
?person ab:firstName ?firstName ; | ||
ab:lastName ?lastName . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# filename: ex546.rq | ||
|
||
LOAD <http://worldcat.org/oclc/41238513.ttl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<form action="http://localhost:3030/testDataset/update" method="post"> | ||
<fieldset> | ||
<legend>Fuseki SPARQL Update</legend> | ||
<textarea name="update" rows="30" cols="100">Put your SPARQL update query here...</textarea><br> | ||
<input type="submit" value="Submit"> | ||
</fieldset> | ||
</form> |