Archive for October, 2009

Web Accessibility in an Educational Context

October 25th, 2009

I’m currently at the annual meeting for the Human Factors and Ergonomics Society and a few hours ago I was attending a set of presentations by the Internet TG on Input and Output on the Web. One of the talks that caught my attention was by Wayne Shebilske of Wright State University on the use of screen readers to help impaired students complete tasks within educational programs such as WebCT, student status management software, and the like. There seem to be many problems with such tools as Dr. Shebilske pointed out based on his study. I think this could be a prime candidate for SW technologies to step in to improve the end user experience. I foresee using such tools along with technologies like RDFa to give the user a better representation of the content being displayed and improving the overall quality of life for these individuals.


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Author: Categories: Semantic Web Tags: ,

Probing the SPARQL endpoint of

October 23rd, 2009

We just ran across the preview SPARQL endpoint for UK’s (powered by Talis) following Harry Metcalfe’s blog . In order to understand what data is hosted by the triple store, we use a series of SPARQL queries to probe the content in We leverage a web service to convert SPARQL/XMl result into HTML and JSON.

First, let’s do some warm up exercises

Q: show me some triples!


SELECT ?s ?p ?o WHERE {?s ?p ?o} LIMIT 5


<> <> “2007-05-02″^^ .

<> <> <> .

<> <> “2007-05-02″^^ .

A: ok, it has some gazette dataset about lond (see, and it uses FOAF and DC vocabulary.

Q: show me some classes and their instances?









A: same observation as above.

Q: Does it host any named graphs?


SELECT ?g WHERE {GRAPH ?g { ?s ?p ?o } } LIMIT 10

Result: “0″ ^^<>

A: no named graph found, and there is only one big default graph

Now let’s run several expensive aggregation queries (note aggregation queries are not part of the current SPARQL specification)

Q: How many triples?


SELECT count(*) WHERE {?s ?p ?o}

Result: “5529380″^^<>

A: alright! Aggregation query is support, and there are 5 million triples. Note “count” is a non-standard aggregation function, it may be support differently be different SPARQL endpoints.

Q: How many graphs (and the number of triples in each graph)?


SELECT ?g count(*) WHERE {GRAPH ?g { ?s ?p ?o } }

Result: “0″ ^^<>

A: no named graph.

Q: How many populated classes?


SELECT count(distinct ?c) WHERE {[] a ?c}

Result: “99″^^<>

A: there are 99 different classes having direct instances in this triple store.

Q: How many populated properties?


SELECT count(distinct ?p) WHERE {[] ?p ?o}

Result: “86″ ^^<>

A: There are 86 unique properties being used as predicate in this dataset. Each property has used by 64K (5529380/86) triples in average. There must be some very popular properties, and we will do that survey later.

Q: How many typed individuals?


SELECT count(distinct ?s) WHERE {?s a ?c}

Result: 504 Gateway Time-out

A: Opps, really expensive. Let’s try something else

Q: How many defined classes?


SELECT count(distinct ?s) WHERE {{?s a <> } UNION {?s a <>}}

Result: 0

A: no class defined, and the triple store is full of individuals

Q: How many individuals (again)?


SELECT count(*) WHERE {[] a ?c}

Result: 995694

A: There are nearly 1 millions of typed individuals, so we can easily see every invidual has 5 (5M/1M) triples in average.

Now, let’s do some knowledge discovery

Q: Show me the 3 most/least used classes in this dataset?


1) select ?c ( count(?s) AS ?count ) where {?s a ?c} group by ?c order by desc(?count) limit 3

2) select ?c ( count(?s) AS ?count ) where {?s a ?c} group by ?c order by ?count limit 3


1) most used classes

<> “156452″ ^^<>

<> “106934″ ^^<>

<> “87798″ ^^<>

2) least used classes

<> “1″ ^^<>

<> “1″ ^^<>

<> “2″ ^^<>

A: Again, the SPAQL query is “safe” because Talis support these SPARQL extensions (c.f. The class that has the most number of instances in this dataset is (which has 156,452 instances.)

Q: what about property usage (top 5)?


1) select ?p ( count(?s) AS ?count ) where {?s ?p ?o} group by ?p order by DESC(?count) limit 5

2) select ?p ( count(?s) AS ?count ) where {?s ?p ?o} group by ?p order by ?count limit 5


1) 5 most used properties:

<> “995694″ ^^<>

<> “312476″ ^^<>

<> “310170″ ^^<>

<> “181940″ ^^<>

<> “181335″ ^^<>

2) 5 least used properties:

<> “1″ ^^<>

<> “2″ ^^<>

<> “2″ ^^<>

<> “3″ ^^<>

<> “49″ ^^<>

A: Some properties are really used (e.g., has been used only once) while some are heavily used (like rdf:type, which is the most frequently used predicate).


We need to stop probing now. A number of complex queries ended up with a timeout error because (i) “LIMIT” only control the final results, so that we cannot just get statistical results on 1000 triples; (ii) “GROUP BY” may produce too many intermediate results, (iii) the statistics queries does not leverage the index structure of triple store, or index structure are not designed for handling such queries, and (iv) many other issues.


presented by Li Ding and Zhengning Shangguan

VN:F [1.9.22_1171]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Author: Categories: linked data, Semantic Web Tags:

OWL 2 Reference Card released

October 18th, 2009

We’re pleased to announce the OWL 2 Reference Card [1]. The Card is meant to be a “cheat sheet” of OWL 2 features printable on a single piece of paper (on both sides). It is based on the OWL 2 Quick Reference Guide [1], which is now a Proposed Recommendation [2] in the OWL 2 Web Ontology Language document set.

Background: OWL 2 [4] is an extension to OWL 1 with a few new functionalities. Some of the new features are syntactic sugar (e.g., disjoint union of classes) while others offer new expressivity, including:

* keys;
* property chains;
* richer datatypes, data ranges;
* qualified cardinality restrictions;
* asymmetric, reflexive, and disjoint properties; and
* enhanced annotation capabilities

Comments and suggestions to the Card are welcome (please send to





Jie Bao

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Author: Categories: tetherless world Tags: