Documente Academic
Documente Profesional
Documente Cultură
Jing deng
CSCI 7818 Web Technologies
Computer Science Department
University of Colorado at Boulder
Wednesday, October 31, 2001
Outline
RDF
Resource Description Framework
represents information on Web with machineunderstandable syntax and semantics
RDF (Cont.)
Tutorial
DC:creator
DC:date
Oct 31 2001
Tut:name
Brain
Tut:email
Tut:email
@hotmail
@yahoo
DC:title
Introduction
Jena
Online documentation
http://www.hpl.hp.co.uk/people/bwm/rdf/jena/javadoc/i
ndex.html
Jena package
jena.model
Key package for application developer. It contains
interfaces for model, resource,
jena.mem
Contains an implementation of Jena API which
stores all model state in main memory
Jena.common
Contains implementation classes
Jena interfaces
DC:author
Statement
Tut:name
Brain
DC:date
Oct 31 2001
resource
Model
DC:title
property
Introduction
Tut:email
Tut:email
@hotmail
@yahoo
Literal
Containers
Represents collections of things
BAG : unordered collection
ALT: unordered collection except first
element
SEQ: ordered collection
Ex. 6 Containers
Bag bag = model.createBag();
bag.add("Romeo and Juliet")
.add("Hamlet")
.add("Othello");
NodeIterator iter = bag.iterator();
while (iter.hasNext()) {
System.out.println(" " + iter.next().toString());
}
model.write(new PrintWriter(System.out));
References
Jena Web Site
http://www.hpl.hp.co.uk/people/bwm/index.html
Jena tutorial
http://bmcb.btinternet.co.uk/2001/rdf/jenatutorial/
http://www.xml.com/pub/a/2001/05/23/jena.html
Thanks!