SSWAP
SSWAP: Simple Semantic Web Architecture and Protocol
The SSWAP project is located: http://sswap.info/
SSWAP aims to make web-services semantically aware of one another. This is achieved in a two step process:
- Marking up tools that "advertise" what data they consume, the manipulations/analyses they perform, and the analytical results/data they emit.
- Marking up data and sending it to a semantic web orchestrator that can find web-services that may operate on said data.
In collaboration with Damian Gessler (sswap@iplantcollaborative.org), the SSWAP project lead, CoGe is becoming sematically aware.
The first step was marking up FASTA data produced by FastaView and sending them to the SSWAP orchestrator http://sswap.iplantcollaborative.org .
This was accomplished by:
Creating an appropriate JSON object string containing the sequence data and appropriate tags:
var myseq = $('#seq_text').val();
var jsonRRG= {
"prefix": {
"data": "http://sswapmeet.sswap.info/data/",
"mime": "http://sswapmeet.sswap.info/mime/",
"seq": "http://sswapmeet.sswap.info/sequence/"
},
"http://sswap.info/examples/resources/canonical/canonicalResource": {},
"mapping": {"_:subject" : "_:object"},
"definitions" : {
"_:subject" : {},
"_:object" : {
"rdf:type" : "seq:FASTA",
"data:literalData" : myseq
}
},
};
var jsonString = JSON.stringify(jsonRRG);
And then sending it to sswap.iplantcollaborative.org (Presented using jquery and causes sswap.iplantc to open in a different window/tab)
var url = "http://sswap.iplantcollaborative.org/ipc/create-pipeline-with-rrg"; var myForm = document.createElement("FORM"); myForm.method="post" ; myForm.action=url; myForm.setAttribute("target", "_blank"); var myInput = document.createElement("textarea"); myInput.name="rrg"; myInput.value=jsonString; myForm.appendChild(myInput); document.body.appendChild(myForm); myForm.submit(); document.body.removeChild(myForm);