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

Commit

Permalink
improved BPIL3 and BPIL4
Browse files Browse the repository at this point in the history
  • Loading branch information
StanRonzhin committed Nov 30, 2018
1 parent 39cee5a commit 9f71ada
Show file tree
Hide file tree
Showing 2 changed files with 13 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.
4 changes: 2 additions & 2 deletions public/markdown/BPIL4.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The latter allows managing data in a remote triple store. You can use both GET a
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.
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
Expand All @@ -26,7 +26,7 @@ After you succeed in an HTTP client, you will send the same request from your Me
### 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).
* **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)
Expand Down

0 comments on commit 9f71ada

Please sign in to comment.