myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Myexperiment-discuss] SPARQL endpoint problems


From: Danius Michaelides
Subject: Re: [Myexperiment-discuss] SPARQL endpoint problems
Date: Mon, 8 Jun 2009 21:26:01 +0100 (BST)

On Mon, 8 Jun 2009, Katy Wolstencroft wrote:

Please can someone refresh the myExperiment search index for tomorrow morning? I am running a training course and Paul has very kindly built me some new workflows. I would like people to find them using the tags.

I've just regenerated the index so you should be able to find the workflows
via search. Let me know if thats not the case.

Also, can I ask how often it is refreshed? Can it be changed so that things can be searched straight after they have been tagged?

Its refreshed on an irregular basis. We've got some proof of concept code
to have the search index updated as soon as something is tagged; it needs
to be worked into a proper patch. In the meantime we'll look at
regenerating the search index nightly.

Danius


Thanks,

Katy

David R Newman wrote:
Hi Jerzy,

Apologies, I should have learnt my lesson from last time that even a small change can effect a lot of queries.

Recently the myExperiment data model itself changed so that admins could define content types and give them their own human-readable labels. This slightly changed the RDF model so that instead of having the dcterms:type property, a workflow now points at a ContentType via mebase:has-content-type. This means that to run the same query as you posted you now need to use the query below:

PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX mebase: <http://rdf.myexperiment.org/ontologies/base/>
PREFIX snarm: <http://rdf.myexperiment.org/ontologies/snarm/>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX mevd: <http://rdf.myexperiment.org/ontologies/viewings_downloads/>
SELECT distinct ?url ?title ?description ?author ?viewed ?downloaded
FROM <http://rdf.myexperiment.org>
WHERE {
?workflow mebase:has-content-type <http://rdf.myexperiment.org/ContentType/1> .
 ?workflow dcterms:title ?title .
 ?workflow dcterms:description ?description .
 ?workflow mebase:has-policy ?policy .
 ?workflow mebase:content-url ?url .
 ?workflow sioc:has_owner ?author .
 ?workflow mevd:viewed ?viewed .
 ?workflow mevd:downloaded ?downloaded .
?policy snarm:has-access <http://rdf.myexperiment.org/ontologies/specific/PublicDownload>
}

Getting rid of the filter statement that using ContentType objects allows should mean that as the number of workflows increases the query should still stay fairly quick.

To try to avoid problems in future I have written a CHANGELOG page (http://rdf.myexperiment.org/ontologies/CHANGELOG) for the myExperiment ontologies / RDF data model. At least this will serve to reassure people that the error is not their fault. Again, apologies, I don't and didn't foresee there being and major changes to the RDF data model but as I can now see, even small changes can produce large ripples.

Regards

David Newman

--On Monday, June 08, 2009 17:31:25 +0200 Jerzy Orlowski <address@hidden> wrote:

Hi

Some time ago I made a SPARQL query for getting all the T1 workflows.
It worked, but now it returns an empty list. Did You change anything in
the endpoint?

PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX mebase:
<http://rdf.myexperiment.org/ontologies/base/> PREFIX snarm:
<http://rdf.myexperiment.org/ontologies/snarm/> PREFIX sioc:
<http://rdfs.org/sioc/ns#> PREFIX mevd:
<http://rdf.myexperiment.org/ontologies/viewings_downloads/> select
distinct ?url ?title ?description ?author ?viewed ?downloaded FROM
<http://rdf.myexperiment.org> where {   ?workflow dcterms:type ?thetype
.   ?workflow dcterms:title ?title .   ?workflow dcterms:description
?description .   ?workflow mebase:has-policy ?policy .  ?workflow
mebase:content-url ?url .   ?workflow sioc:has_owner ?author .
?workflow mevd:viewed ?viewed .   ?workflow mevd:downloaded ?downloaded
.   ?policy snarm:has-access
<http://rdf.myexperiment.org/ontologies/specific/PublicDownload> .
FILTER (REGEX(?thetype,'application/vnd.taverna.scufl\\\+xml')) }


Jerzy Orlowski


_______________________________________________
Myexperiment-discuss mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/myexperiment-discuss






_______________________________________________
Myexperiment-discuss mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/myexperiment-discuss


--
Dr Katy Wolstencroft
Research Fellow, School of Computer Science,1.17 Kilburn Building
University of Manchester, Oxford Road, Manchester, M13 9PL, UK
Tel: +44(0)161 2756276




_______________________________________________
Myexperiment-discuss mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/myexperiment-discuss






reply via email to

[Prev in Thread] Current Thread [Next in Thread]