Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The "OntologyPlugin" page has been changed by LewisJohnMcgibbney.
http://wiki.apache.org/nutch/OntologyPlugin?action=diff&rev1=9&rev2=10

--------------------------------------------------

  By default, ontology plugin is compiled, but query refinement based on it
  is ignored in search.jsp. To enable query refinement, do the following:
  
+ Download Jena 2.6.X here >>> http://sourceforge.net/projects/jena/files/
-   1. specify url(s) of owl files to property extension.ontology.urls in 
./conf/nutch-default.xml (or better, ./conf/nutch-site.xml).
-   1. uncomment refine-query-init.jsp and refine-query.jsp in search.jsp
  
+ ·         Move Nutch-1.2.war to server /webapps and boot up server
- If you want to check ontology defined by different owl file, modify property
- extension.ontology.urls in ./conf/nutch-default.xml (or better,
- ./conf/nutch-site.xml), and insert the following to ./bin/nutch:
  
+ ·         Copy ontology.jar from /WEB-INF/classes/plugins/ontology to 
/WEB-INF/lib
- {{{
- elif [ "$COMMAND" = "ontology" ] ; then
-   for f in $NUTCH_HOME/build/plugins/ontology/*.jar; do
-     CLASSPATH=${CLASSPATH}:$f;
-   done
-   CLASS='org.apache.nutch.ontology.OntologyImpl'
- }}}
  
+ ·         Do the same with all jar dependencies within your clean Jena 
distribution
+ 
+ ·         Edit search.jsp by uncommenting so as to enable refine-query.jsp 
and refine-query-init.jsp
+ 
+ ·         Edit refine-query.jsp to the following
+ 
+                o   Line 44 – String search URL = “../search.jsp?”+searchquery;
+ 
+ ·         Edit nutch-site.xml and add ontology plug-in to plugin.includes 
property
+ 
+ ·         specify absolute URI(s) of owl files to property 
extension.ontology.urls in ./conf/nutch-default.xml (or better, 
./conf/nutch-site.xml). 
+              N.B. your OWL files need to be in RDF/XML format for the parser 
implementation to succeed. It appears that files need to be hosted
+              online as locally hosted files are not read properly by the 
plug-in.
+ 
+ ·         Finally ALL ontology files must be in RDF/XML format to adhere to 
the ontology parser specified in ontology.jar class files. It is important that 
OWL files are in this format.
+ 
+ Further to this, it is important to consider that this plug-in will probably 
not be supported in subsequent Nutch releases as both searching and indexing is 
being delegated to Solr. This is something you should consider If you plan to 
use this feature on a long term basis. It would be nice to have this ported as 
a Solr requestHandler plug-in implementation ;0)
  
  == Possible issue: ==
+ 
+ In previous releases of Nutch <1.2
  
  If search.jsp fails with this or similar error: 
  

Reply via email to