Table 8.
In this table, we present a SPARQL implementation of a sample 5W1H query
| Query: What is the gender of an infected person? |
|---|
| Sample SPARQL implementation: |
| @prefix ndssl:<http://ndssl.bi.vt.edu/> |
| @prefix vocab:<http://ndssl.bi.vt.edu/vocab/> |
| SELECT ?infected_person_gender |
| WHERE { |
| ndssl:person#1 vocab:has_sex ?infected_person_gender |
| } |
Here, we are showing a WHAT query. In this query, we assume the infected person ID is given. The vocabulary “has sex” fits of the WHAT type property vocabulary (*sex)