00: All Diamond-Marked Questions Flashcards
What are the problems with the current Keyword-Based Search Engines?
- Key problem: The meaning of Web content is not machine-accessible: lack of semantics
- High recall, low precision.
- Low or no recall
- Results are highly sensitive to vocabulary
- Results are single Web pages
- Human involvement is necessary to interpret and combine results
- Results of Web searches are not readily accessible by other software tools
What are the characteristics of a Semantic Web Enabled Knowledge
Management?
- organizing knowledge in conceptual spaces according to its meaning.
- having automated tools for maintenance and knowledge discovery
- answering any query semantically
- answering any query over several documents
- defining who may view certain parts of information (even parts of documents) will be possible
What will a personal agent on the Semantic Web do? Name its operations one after another chronically (in a time-based sequence).
- receive some tasks and preferences from the person
- seek information from Web sources, communicate with other agents
- compare information about user requirements and preferences, make certain choices
- give answers to the user
How can you resolve this issue so that referee(X,Y,Z) can also be represented with triplets?
- We introduce:
- a new auxiliary resource chessGame
- the binary predicates ref, player1, and player2
- We can represent referee(X,Y,Z) in the following image
By applying the two simplification rules you learned, convert the following RDF in the image to its abbreviated syntax.
Simplification rules:
- Childless property elements within description elements may be replaced by XML attributes
- For description elements with a typing element we can use the name specified in the rdf:type element instead of rdf:Description
Perform reification on the following statement in the image and give it the ID of StatementAbout949352.
What are the main issues which help developers to lower their development cost with respect to using RDF and SPARQL?
- the explicitness of queries,
- the techniques used for the fast execution of queries employed by SPARQL,
- the flexibility of RDF, and
- the capability of merging results from multiple data sources in SPARQL
What is the result of the following image?
x name
_:r “Alice”
_:s “Bob”
Write a SPARQL command for writing the name of all movies and their directors for every movie in which MacWin has played, sorted based on the names of movies.
SELECT ?movie ?director
WHERE {
:MacWin played-in ?movie .
?director directed ?movie .
}
ORDER BY ?movie
- *Write a SPARQL command for writing the number of movies in which each actor has played.**
- *Hint: use GROUP BY**
SELECT ?actor (count(?movie) as ?movieCount)
WHERE {
?actor played-in ?movie
}
GROUP BY ?actor
Write a SPARQL command for writing the number of movies in which MacWin has played.
Hint: use COUNT
SELECT (count(?movie) as ?movieCount)
WHERE {
:MacWin played-in ?movie
}
- *Write a SPARQL command for writing the number of movies in which each actor has played. Your command should only display those who have played in more than 6 movies.**
- *Hint: use HAVING**
SELECT ?actor (count(?movie) as ?movieCount)
WHERE {
?actor played-in ?movie
}
GROUP BY ?actor
HAVING (?movieCount > 6)
What is the output of the following image?
All triplets in foaf version 1 (the RDF file)
- *By using the implication symbol, write an implication formula for the following image.**
- *Hint: Complete the following: PropVal(domain,?p,?d) -> ???**
By using the implication symbol, write an implication formula for the following image.
Hint: Complete the following: PropVal(range, ?p, ?r) -> ???
By using biconditional symbol, write a biconditional formula for:
P is a subproperty of P’, if P’(x,y) is true whenever P(x,y) is true.
Note that P and P‘ both should be of type Property.
Hint: Complete the following: PropVal(subPropertyOf,?p,?p’) <–> ???
Write a query for displaying the number of uses for each predicate in the dataset.
SELECT ?p (count(?p) as ?pCount)
WHERE {
[] ?p [] .
}
GROUP BY ?p
Write the code in the following image in English.
Only professors teach first-year subjects
Write the code in the following image in English.
One of the math courses is taught by #949352
Write three examples for each of the transitive and symmetric properties.
-
SYMMETRIC:
- “X isMarriedTo Y” means “Y isMarriedTo X”.
- “Z equals D“ means “D equals Z“
- ” A co-worker-of B” means “ B co-worker-of A”
-
TRANSITIVE:
- if A implies B and B implies C, then A implies C
- if “Z equals D” and “D equals E” means “Z equals E“
- if “X sub-set-of Y” and “Y sub-set-of Z” means “X sub-set Z“
Assuming #staffMember, #faculty, and #techSupportStaff” have all been defined as classes, by the use of nesting Boolean operators, complete the following code for defining adminStaff. Please indent statements for the sake of clarity.
By the use of two examples, one in databases and the other in Web, describe how a database uses a closed world and Web uses open world assumptions.
Web present data about uncounted concepts, consider the following statement: “Tim Smith with the ID of 785654549 is a citizen of France.”
Now, what if you ask “Is Tim Smith with the ID of 785654549 a citizen of Malaysia?” Under a closed world assumption, the answer is “no” whereas under the open world assumption the answer is “not known”.
Web is full of such kinds of data. Hence, open world assumption is used in a system with incomplete information, to which Web belongs.
On the other hand, databases usually presents data about limited concepts, say a university.
For instance, if the database of UOW shows that Tim Smith with the ID of 785654549 is not UOW’s student, definitely he is not UOW’s student. Moreover, in Web, non-unique names are used, and two different ID may show the same resource, whereas in database this not the case closed world assumption is applied to systems with complete information.
Change the following SELECT command so that as well as writing the name of graphs (datasets), it writes the number of triplets in each graph as well.
SELECT DISTINCT ?g
{ graph ?g {[] [] [] .} }
SELECT ?g count(?g)
{ graph ?g {[] [] [] .} }
GROUP BY ?g
What is the output of the following image?
Title
“SPARQL Protocol Tutorial“
“SPARQL“
“SPARQL (updated)”
“SPARQL Query Language Tutorial”