Package org.creativecommons.nutch
Class CCParseFilter.Walker
java.lang.Object
org.creativecommons.nutch.CCParseFilter.Walker
- Enclosing class:
- CCParseFilter
Walks DOM tree, looking for RDF in comments and licenses in anchors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwalk(Node doc, URL base, Metadata metadata, Configuration conf) Scan the document adding attributes to metadata.
-
Method Details
-
walk
public static void walk(Node doc, URL base, Metadata metadata, Configuration conf) throws ParseException Scan the document adding attributes to metadata.- Parameters:
doc- theNodeto walk and processbase- canonical urlmetadata- urlMetadataconf- a populatedConfiguration- Throws:
ParseException- if there is a fatal error or ifcreativecommons.exclude.unlicensedis set to true
-