-
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.
Merge pull request KNowledgeOnWebScale#4 from KNowledgeOnWebScale/fea…
…ture/rml RML exercises
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Exercise 3.1 | ||
|
||
Create YARRRML rules to convert the person data below into RDF. | ||
Use the FOAF vocabulary for modeling, as you have done for exercise 1.1. | ||
|
||
Tip: test your YARRRML rules via [Matey](https://rml.io/yarrrml/matey/). | ||
|
||
## Person data | ||
|
||
```csv | ||
id,firstname,lastname,name,nickname,org-id | ||
0,Gwendolyne,Stacy,,Gwen,new-u | ||
1,,,T'Challa,Black Panther,avngrs | ||
2,Wanda,Maximoff,,Scarlet Witch,avngrs | ||
3,Rita,Clarkson,,,new-u | ||
``` | ||
|
||
|
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,33 @@ | ||
# Exercise 3.2 | ||
|
||
Create YARRRML rules to convert the person and organization data below into RDF. | ||
Do not forget to link the people to their organizations through your rules. | ||
Use the FOAF vocabulary for modeling, as you have done for exercise 1.1. | ||
|
||
Tip: test your YARRRML rules via [Matey](https://rml.io/yarrrml/matey/). | ||
|
||
## Person data | ||
|
||
```csv | ||
id,firstname,lastname,name,nickname,org-id | ||
0,Gwendolyne,Stacy,,Gwen,new-u | ||
1,,,T'Challa,Black Panther,avngrs | ||
2,Wanda,Maximoff,,Scarlet Witch,avngrs | ||
3,Rita,Clarkson,,,new-u | ||
``` | ||
|
||
## Organization data | ||
|
||
```json | ||
[ | ||
{ | ||
"id": "new-u", | ||
"name": "New U Technologies" | ||
}, | ||
{ | ||
"id": "avngrs", | ||
"name": "Avengers" | ||
} | ||
] | ||
``` | ||
|
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,8 @@ | ||
# Exercise 3.3 | ||
|
||
Use the GitHub [RML action](https://github.com/RMLio/rml-action/) to generate RDF | ||
via your YARRRML rules of exercise 3.2 directly on GitHub. | ||
Once the action is working, | ||
try to change the YARRRML rules and | ||
verify that the generated RDF is also changed. | ||
|