public interface TagSoupExtractionResult extends ExtractionResult
ExtractionResult
able to collect property roots generated by HTML Microformat extractions.Modifier and Type | Interface and Description |
---|---|
static class |
TagSoupExtractionResult.PropertyPath
Defines a property path object.
|
static class |
TagSoupExtractionResult.ResourceRoot
Defines a property root object.
|
IssueReport.Issue, IssueReport.IssueLevel
Modifier and Type | Method and Description |
---|---|
void |
addPropertyPath(Class<? extends MicroformatExtractor> extractor,
org.openrdf.model.Resource propertySubject,
org.openrdf.model.Resource property,
org.openrdf.model.BNode object,
String[] path)
Adds a property path to the list of the extracted data.
|
void |
addResourceRoot(String[] path,
org.openrdf.model.Resource root,
Class<? extends MicroformatExtractor> extractor)
Adds a root property to the extraction result, specifying also
the path corresponding to the root of data which generated the property
and the extractor responsible for such addition.
|
List<TagSoupExtractionResult.PropertyPath> |
getPropertyPaths()
Returns all the collected property paths.
|
List<TagSoupExtractionResult.ResourceRoot> |
getResourceRoots()
Returns all the collected property roots.
|
close, openSubResult, writeNamespace, writeTriple, writeTriple
getIssues, notifyIssue, printReport
void addResourceRoot(String[] path, org.openrdf.model.Resource root, Class<? extends MicroformatExtractor> extractor)
path
- the path from the document root to the local root of the data generating the property.root
- the property root node.extractor
- the extractor responsible of such extraction.List<TagSoupExtractionResult.ResourceRoot> getResourceRoots()
TagSoupExtractionResult.ResourceRoot
s.void addPropertyPath(Class<? extends MicroformatExtractor> extractor, org.openrdf.model.Resource propertySubject, org.openrdf.model.Resource property, org.openrdf.model.BNode object, String[] path)
extractor
- the identifier of the extractor responsible for retrieving such property.propertySubject
- the subject of the property.property
- the property URI.object
- the property object if any, null
otherwise.path
- the path of the HTML node from which the property literal has been extracted.List<TagSoupExtractionResult.PropertyPath> getPropertyPaths()
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.