Skip to content

Commit

Permalink
Merge pull request KNowledgeOnWebScale#4 from KNowledgeOnWebScale/fea…
Browse files Browse the repository at this point in the history
…ture/rml

RML exercises
  • Loading branch information
pheyvaer authored Jan 17, 2022
2 parents 8854972 + 2070c0c commit 866cfae
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
18 changes: 18 additions & 0 deletions exercise-3-1.md
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
```


33 changes: 33 additions & 0 deletions exercise-3-2.md
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"
}
]
```

8 changes: 8 additions & 0 deletions exercise-3-3.md
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.

0 comments on commit 866cfae

Please sign in to comment.