public class SwrlReader extends OwlLoader implements FormatReader<Rule>
Constructor and Description |
---|
SwrlReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
return whether this reader can read data
|
void |
close()
Close the reader.
|
java.lang.String |
getFilters()
Get the filters for this reader.
|
java.util.List<Rule> |
getRules()
Get the list of rules read by this reader
|
java.lang.String |
getSource()
Get the source for this reader.
|
boolean |
hasMoreData()
Return whether this reader has more data to be read
|
protected void |
parseUnknownElement(org.w3c.dom.Element elem)
Parse an element with an unknown tag.
|
java.util.List<Rule> |
readData()
Read the data for the rules.
|
void |
setFilters(java.lang.String filters)
Set the filters for this reader.
|
void |
setSource(java.lang.String source)
Set the source for this reader.
|
getLoadedUrls, getOntology, isLoaded, loadData, loadData
public boolean canRead()
canRead
in interface FormatReader<Rule>
public void close()
close
in interface FormatReader<Rule>
public java.lang.String getFilters()
getFilters
in interface FormatReader<Rule>
public java.util.List<Rule> getRules()
public java.lang.String getSource()
getSource
in interface FormatReader<Rule>
public boolean hasMoreData()
hasMoreData
in interface FormatReader<Rule>
protected void parseUnknownElement(org.w3c.dom.Element elem)
parseUnknownElement
in class OwlLoader
elem
- the element to parsepublic java.util.List<Rule> readData()
readData
in interface FormatReader<Rule>
public void setFilters(java.lang.String filters)
setFilters
in interface FormatReader<Rule>
filters
- the set of filterspublic void setSource(java.lang.String source)
setSource
in interface FormatReader<Rule>
source
- the source for the reader