Adaptive Information Disclosure (AID)

Participating in the VL-e project

Adaptive Information Disclosure (AID) header image 1

Entries Tagged as 'Queries'

SeRQL to SPARQL for CWA query

May 4th, 2009 · No Comments

I tried to convert a serql query to a sparql query, but I could not find a proper equivalent of the Localname (and Namespace) functions in SeRQL, or documentation/examples of how to do this with FILTER functions  were too difficult to find. The solution chosen for SPARQL seems more powerful and extensible, but it is [...]

[Read more →]

Tags: Queries

CWA prototype class and relation types

April 29th, 2009 · Comments Off

CWA classes
SELECT DISTINCT cwa_class
FROM
{cwa_instance} rdf:instanceOf {cwa_class}
USING NAMESPACE
cwa = <http://www.nbic.nl/cwa#>,
rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
cwa_class:
cwa:RelationTerm
CWA relations
SELECT DISTINCT cwa_relation
FROM
{cwa_concept1} cwa_relation {cwa_concept2}
WHERE
Namespace(cwa_relation)=cwa:
USING NAMESPACE
cwa = <http://www.nbic.nl/cwa#>,
rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Results in:
cwa_relation:
        cwa:related
        cwa:relation
        cwa:typeRelation
        cwa:strength
        cwa:has_query  
        cwa:discovered_by
        cwa:timestamp
        cwa:annotation
CWA relation types
SELECT DISTINCT cwa_type
FROM
{cwa_concept} cwa:typeRelation {cwa_type}
USING NAMESPACE
cwa = <http://www.nbic.nl/cwa#>,
rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
cwa_type
cwa:cooccurrence

[Read more →]

Tags: Queries