Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #146 from PDOK/#144
Browse files Browse the repository at this point in the history
  • Loading branch information
GerwinBosch authored Nov 30, 2018
2 parents 3c26ca1 + 54fad90 commit 5ad44d5
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 22 deletions.
31 changes: 11 additions & 20 deletions public/markdown/BPIL3.MD
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
# Assignment 3: Call mister Postman
# Assignment 3: Find Your Match

## Task

[SPARQL queries](https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/) are sent via WEB using the HTTP protocol.
In short, a client sends an HTTP request to a SPARQL endpoint that handle the request and sends HTTP response back to the originating client.
In this way, you can send SELECT queries as well as UPDATE queries.
The latter allows managing data in a remote triple store. You can use both GET and POST requests.
Triple stores are able to response in mny formats and serialisations (e.g Turtle, RDF/XML, JSON and JSON-LD)

In this assignment you are asked to perform an HTTP request with a SPARQL query using an HTTP client.
You will use the last query (about product information) of the second assignment.
After you succeed in an HTTP client, you will send the same request from your Mendix application.
In this assignment you are asked to query company data generated in the BPIL assignment 1 : Explain Yourself. Your goal is to
find matching offerings and interests. The final query will be required for the last BPIL assignment.

### Required knowledge

1. The student knows how to query Linked Data using SPARQL
2. The student knows the concept of federated querying
3. The student knows how to send an HTTP request from Mendix software
2. The student has accomplished the BPIL Assignment 1 : Explain Yourself.
3. The student has accomplished the BPIL Assignment 2 : Enrich It.

### Goals

1. To understand how SPARQL requests are constructed
2. To sand a SPARQL query from within Mendix app
1. To improve understanding of SPARQL requests
2. To gain practical experience in analysis of data semantics and structures.

### Assignment steps

* **Install [Postman](https://www.getpostman.com/apps)** for your platform. Postman is a user friendly HTTP client that is handy when it comes to development of HTTP requests.
* **Encode a query into a URL** using the URL-encoding [service](https://meyerweb.com/eric/tools/dencoder/). Use the last query from the previous assignment (about products).
* **Construct an HTTP request** by adding your encoded query to the base `http://virtuoso.almere.pilod.nl/sparql?query=`
* **Send the request** from Postman
* **Change query parameters** to have response in a desired format by changing the accept header e.g (to `accept:json` for JSON encoding)
* **Send the same request** from Mendix
* **Find all the companies in the repository** Make a SPARQL query that lists all the companies.
* **Find their offerings** Make a SPARQL query that retrieves company offerings.
* **Find their interests** Make a SPARQL query that retrieves company interests.
* **Construct a SPARQL query that matches offerings and interests** This query will be reused later in the last BPIL assignment.
33 changes: 33 additions & 0 deletions public/markdown/BPIL4.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Assignment 3: Call mister Postman

## Task

[SPARQL queries](https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/) are sent via WEB using the HTTP protocol.
In short, a client sends an HTTP request to a SPARQL endpoint that handle the request and sends HTTP response back to the originating client.
In this way, you can send SELECT queries as well as UPDATE queries.
The latter allows managing data in a remote triple store. You can use both GET and POST requests.
Triple stores are able to response in mny formats and serialisations (e.g Turtle, RDF/XML, JSON and JSON-LD)

In this assignment you are asked to perform an HTTP request with a SPARQL query using an HTTP client.
You will use the last query (find a match) of the third assignment.
After you succeed in an HTTP client, you will send the same request from your Mendix application.

### Required knowledge

1. The student knows how to query Linked Data using SPARQL
2. The student knows the concept of federated querying
3. The student knows how to send an HTTP request from Mendix software

### Goals

1. To understand how SPARQL requests are constructed
2. To sand a SPARQL query from within Mendix app

### Assignment steps

* **Install [Postman](https://www.getpostman.com/apps)** for your platform. Postman is a user friendly HTTP client that is handy when it comes to development of HTTP requests.
* **Encode a query into a URL** using the URL-encoding [service](https://meyerweb.com/eric/tools/dencoder/). Use the last query from the previous assignment (find a match).
* **Construct an HTTP request** by adding your encoded query to the base `http://virtuoso.almere.pilod.nl/sparql?query=`
* **Send the request** from Postman
* **Change query parameters** to have response in a desired format by changing the accept header e.g (to `accept:json` for JSON encoding)
* **Send the same request** from Mendix
8 changes: 6 additions & 2 deletions src/Tutorialised.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Tutorialised extends React.Component {
`${process.env.PUBLIC_URL}/markdown/BPIL1.MD`,
`${process.env.PUBLIC_URL}/markdown/BPIL2.MD`,
`${process.env.PUBLIC_URL}/markdown/BPIL3.MD`,
`${process.env.PUBLIC_URL}/markdown/BPIL4.MD`,
],
},
},
Expand Down Expand Up @@ -166,10 +167,13 @@ class Tutorialised extends React.Component {
onClick={() => this.openRemoteMarkdown(2, 2)}
/>
<FlatButton
label="Assignment 3: Call mister Postman"
label="Assignment 3: Find your match"
onClick={() => this.openRemoteMarkdown(2, 3)}
/>

<FlatButton
label="Assignment 4: Call mister Postman"
onClick={() => this.openRemoteMarkdown(2, 4)}
/>
</CardActions>
</Card>
<Dialog
Expand Down

0 comments on commit 5ad44d5

Please sign in to comment.