Modifier and Type | Field and Description |
---|---|
protected Map<String,Frame> |
frames
The frames themselves, map from frame name to MapFrame.
|
Constructor and Description |
---|
RDFFrameSet(InputStream in,
String base)
Load the RDF Model from an InputStream.
|
RDFFrameSet(com.hp.hpl.jena.rdf.model.Model model)
Construct a FrameSet from an existing RDF model.
|
RDFFrameSet(String url,
String lang)
Load the RDF Model from an URL.
|
Modifier and Type | Method and Description |
---|---|
protected void |
extractTriples(com.hp.hpl.jena.rdf.model.Model model)
Extract the frames from the RDF model.
|
protected Frame |
findOrCreate(String id)
Find a frame with a given id or creates it anew if it is not found.
|
Frame |
getFrame(String id)
Get a frame with a given name.
|
Collection<Frame> |
getFrames()
Get all the frames.
|
public RDFFrameSet(com.hp.hpl.jena.rdf.model.Model model)
public RDFFrameSet(InputStream in, String base) throws IOException
IOException
protected void extractTriples(com.hp.hpl.jena.rdf.model.Model model)
protected Frame findOrCreate(String id)
public Collection<Frame> getFrames()
Copyright © 2015 Pablo Duboue. All rights reserved.