haystack scripting demo

> x = bsf.lookupBean("HaystackScriptHost");
edu.mit.lcs.haystack.HaystackScriptHost@10b053
> y =
x.createRDFStoreClient("http://localhost:8080/soap/servlet/rpcrouter");
edu.mit.lcs.haystack.RDFStoreClient@686da0
>
y.importRDF("http://grcinet.grci.com/maria/www/codipsite/Onto/DublinCore
/Dubli
nCoreOntology.daml");
org.mozilla.javascript.Undefined@1d0a4f
> z = y.queryRDF(y.createEquals(y.createPredicate(),
y.createURI("http://www.dam
l.org/2000/10/daml-ont#domain")));
Model[null of size 15]
> a = z.elements();
java.util.Hashtable$Enumerator@1319c
> a.nextElement();
triple("Description", "http://www.daml.org/2000/10/daml-ont#domain",
"#Resource"
)
> a.nextElement();
triple("Contributor", "http://www.daml.org/2000/10/daml-ont#domain",
"#Resource"
)
> a.nextElement();
triple("Identifier", "http://www.daml.org/2000/10/daml-ont#domain",
"#Resource")

> a.nextElement();
triple("Date", "http://www.daml.org/2000/10/daml-ont#domain",
"#Resource")
>

Received on Wednesday, 16 May 2001 11:00:21 UTC