The sparql command I use is:
String query=
"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 " +
"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')) "+
"} ";
for T1 workflows
String query=
"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 " +
"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,'taverna2beta')) "+
"} ";
For T2 workflows.
To make it automatic I prepare a POST query and send it to
http://rdf.myexperiment.org/sparql and I get XML file with links to all
the workflows
Jerzy Orlowski
Mahmut Uludag wrote:
> Hi Jerzy,
>
>> Downloading all the workflows is not be a problem (I do
>> It using SPARQL).
>
> Can you please elaborate this? For example, if i want to download
> workflows in MyExperiment what should i do?
>
> I need to understand semantic web technologies and SPARQL but quite
> confused at the moment. I hope this will not offend anyone on the list
> as my question is not related to taverna.
>
> Regards,
> Mahmut
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> taverna-hackers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/taverna-hackers
> Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
> FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq
>
>
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
taverna-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-hackers
Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq