没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Semantic Web and Intelligent Systems (SS 2014)
Assignment 2 - SPARQL and Linked Data
Submission deadline: before Assignment 3
Exercise 1:
For this exercise, assume that you are operating on a model using the swpub.rdf schema from
the last homework. Write the following queries in SPARQL syntax:
a) Retrieve the titles of all papers that appear in the proceedings of a conference, workshop or
similar event.
b) For all papers written between 2001 and 2005, inclusive, retrieve the title, human-friendly
name of the type (i.e., using its rdfs:label) and year of the paper.
c) Find all papers that appear in a venue with “ISWC” in the name (using partial string
matching), and return a list of title, venue, year and topic label (i.e., not the URI of the topic),
sorted by year in descending order, followed by topic in ascending order (for those papers in
the same year).
d) For each author, retrieve their name and a count of the number of papers they have authored.
Sort the result by author name. You should assume that two authors are the same if and only
if their full names match exactly. For sorting purposes, just use the name as it appears, do not
worry about first name or last name distinctions. Hint: You need to use proposed SPARQL
1.1 extensions to do this.
Exercise 2:
Write a SPARQL construct query that generates all triples inferred by RDFS entailment rule
rdfs9 (see the RDF Semantics recommendation [http://www.w3.org/TR/rdf-mt/ ], Section 7). The
query should work correctly regardless of domain schema used (i.e., it should be domain
independent). You may assume that all entailed rdfs:subClassOf statements are already included
in the graph.
Exercise 3:
Consider a triple store that contains social networking information in the form of FOAF profiles
(http://www.foaf-project.org/) collected from various web sites. Assume each pay-level domain
uses different URIs for people, but that some sites have users in common. One way to generate
links for FOAF is when two resources share the same value for the foaf:mbox property, which
provides an e-mail address for an agent. Write a SPARQL construct query to generate
owl:sameAs (http://www.w3.org/TR/owl-ref/#sameAs-def) statements based on this property.
Make sure that your query only generates triples where the subject and object are different (i.e.,
non-trivial owl:sameAs statements).
Exercise 4:
资源评论
pakdoost
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功