This document contains several "written" and "electronic" homework questions originally from the course "Semantic Web Topics" at LeHigh University. They include: Write a series of SPARQL queries using a provided schema; Write a SPARQL construct query that generates all triples inferred by a specific RDFS entailment rule; Write a SPARQL construct query to generate
owl:sameAs statements between domains which share specified property; Describe the pros and cons of generating links in the manner specified in the previous question; Using Jena, create a class that can read in all the files in a specified directory and create a Web page that lists a series of publications organized by topic – reading all of the files into a single model and only using SPARQL to retrieve information from the model.
Keywords: SPARQL, RDF Schema, Entailment regime, Apache Jena, Java
Author: Heflin, Jeff
Date created: 2013-02-01 05:00:00.000
Time required: P4H
Educational use: assessment
Educational audience: teacher-educationSpecialist
Interactivity type: active
- Uses aggregates to apply expressions over groups of solutions (GROUP BY, COUNT, SUM, AVG, MIN) for partitioning results, evaluating projections, and filtering.
- Uses the regular expression (regex()) function for string matching.
- Uses common entailment regimes and understands their uses.
- Uses CONSTRUCT to extract and transform results into a single RDF graph specified by a graph template.
- Uses FILTER to formulates queries that eliminate solutions from a result set.
- Uses RDF programming libraries to extract RDF data from CSV files, databases, or web pages.
- Uses RDF-specific programming methods to query RDF data and save the results for further processing.