fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.knowledgebaseExp
Class KnowledgebaseXpathExpression

java.lang.Object
  extended by fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.knowledgebaseExp.KnowledgebaseXpathExpression

public class KnowledgebaseXpathExpression
extends Object

Set of XPath expression for navigating through different positions in Knowledge base (written in XML format). These are following expression are for accessing different parts of KB. Note: if structure change in KB then change XPath expression here as well.


Field Summary
static String action_ID
          XPath expression to copy the relevant crawling Action's id from Knowledge base.
static String detect_CMSID
          XPath expression that get the id of Content management system from knowledge base for currently detected Web application.
static String object_name
          XPath expression to copy the current objects name from Knowledge base.
static String webA_detectionRule
          XPath expression to copy all the Web application detection pattern from Knowledge base.
 
Constructor Summary
KnowledgebaseXpathExpression()
           
 
Method Summary
static String getAppName(String cms)
          Return the XPath expression, one need to use for extracting detected application name from Knowledge base.
static String getBlogPostBodyEXP(String action)
          Return the XPath expression for copying the blog post body expression from knowledgebase.
static String getBlogPostBodyHTMLEXP(String action)
          Return the XPath expression for copying the blog post body (as html) expression from knowledgebase.
static String getBlogPostDateEXP(String action)
          Return the XPath expression for copying the blog post date expression from knowledgebase.
static String getKB_Blog_PostDetectExp(String cms)
          Return the XPath expression for copying the individual post level Detection Expression from Knowledgebase.
static String getKB_Blog_PostlevelDetectExp(String cms)
          Return the XPath expression for copying the Blog's list of post level Detection Expression from Knowledgebase.
static String getKB_Micro_Blog_PostlevelDetectExp(String cms)
          Return the XPath expression for copying the list of tweets level Detection Expression from Knowledgebase.
static String getKBFollowerStatusEXP(String action)
          Return the XPath expression for copying the follower expression from knowledgebase.
static String getKBFollowingStatusEXP(String action)
          Return the XPath expression for copying the following expression from knowledgebase.
static String getKBForumlevelDetectExp(String cms)
          Return the XPath expression for copying the forum level Detection Expression from Knowledgebase.
static String getKBHeadEXP(String action)
          Return the XPath expression for copying the head of Object extraction from knowledgebase.
static String getKBLinkAnchorExp(String action)
          Return the XPath expression for copying the relevant expression from knowledgebase for link's anchor text extraction.
static String getKBLinkExtractExp(String action)
          Return the XPath expression for copying the link extraction expression from Knowledgebase.
static String getKBListThreadlevelDetectExp(String cms)
          Return the XPath expression for copying the list of Thread level Detection Expression from Knowledgebase.
static String getKBObjectExtractionEXP(String action)
          Return the XPath expression for copying the set of related objects expression from knowledgebase.
static String getKBPageNavExp(String action)
          Return the XPath expression for copying the related page navigation expression from Knowledgebase.
static String getKBProfileNameEXP(String action)
          Return the XPath expression for copying the profile name expression from knowledgebase.
static String getKBThreadlevelDetectExp(String cms)
          Return the XPath expression for copying the list of post level Detection Expression from Knowledgebase.
static String getKBTitleEXP(String action)
          Return the XPath expression for copying the post title extraction expression from Knowledgebase.
static String getKBTweetStatusEXP(String action)
          Return the XPath expression for copy the tweet status expression from knowledgebase.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

action_ID

public static final String action_ID
XPath expression to copy the relevant crawling Action's id from Knowledge base.

See Also:
Constant Field Values

detect_CMSID

public static final String detect_CMSID
XPath expression that get the id of Content management system from knowledge base for currently detected Web application.

See Also:
Constant Field Values

object_name

public static final String object_name
XPath expression to copy the current objects name from Knowledge base.

See Also:
Constant Field Values

webA_detectionRule

public static final String webA_detectionRule
XPath expression to copy all the Web application detection pattern from Knowledge base.

See Also:
Constant Field Values
Constructor Detail

KnowledgebaseXpathExpression

public KnowledgebaseXpathExpression()
Method Detail

getAppName

public static String getAppName(String cms)
Return the XPath expression, one need to use for extracting detected application name from Knowledge base.

Parameters:
cms - content management system id
Returns:
XPath expression for extracting application name

getBlogPostBodyEXP

public static String getBlogPostBodyEXP(String action)
Return the XPath expression for copying the blog post body expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getBlogPostBodyHTMLEXP

public static String getBlogPostBodyHTMLEXP(String action)
Return the XPath expression for copying the blog post body (as html) expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getBlogPostDateEXP

public static String getBlogPostDateEXP(String action)
Return the XPath expression for copying the blog post date expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getKB_Blog_PostDetectExp

public static String getKB_Blog_PostDetectExp(String cms)
Return the XPath expression for copying the individual post level Detection Expression from Knowledgebase.

Parameters:
cms - content management system id
Returns:
XPath expression

getKB_Blog_PostlevelDetectExp

public static String getKB_Blog_PostlevelDetectExp(String cms)
Return the XPath expression for copying the Blog's list of post level Detection Expression from Knowledgebase.

Parameters:
cms - content management system id
Returns:
XPath expression

getKB_Micro_Blog_PostlevelDetectExp

public static String getKB_Micro_Blog_PostlevelDetectExp(String cms)
Return the XPath expression for copying the list of tweets level Detection Expression from Knowledgebase.

Parameters:
cms - content management system id
Returns:
XPath expression

getKBFollowerStatusEXP

public static String getKBFollowerStatusEXP(String action)
Return the XPath expression for copying the follower expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getKBFollowingStatusEXP

public static String getKBFollowingStatusEXP(String action)
Return the XPath expression for copying the following expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getKBForumlevelDetectExp

public static String getKBForumlevelDetectExp(String cms)
Return the XPath expression for copying the forum level Detection Expression from Knowledgebase.

Parameters:
cms - content management system id
Returns:
expression for extracting relevant forum level detection pattern

getKBHeadEXP

public static String getKBHeadEXP(String action)
Return the XPath expression for copying the head of Object extraction from knowledgebase.
Example:
Let's suppose following xml tree
<?xml version="1.0" ?>

  <commentList>
   <comment id="c1">
     .
     .
     .
   </comment>
   <comment id="c2">
     .
     .
     .
  </comment>
   .
   .
   .
 </commentList>
</xml>

In above example, <comment > element is the Head of the individual post.

Parameters:
action - action id
Returns:
XPath expression

getKBLinkAnchorExp

public static String getKBLinkAnchorExp(String action)
Return the XPath expression for copying the relevant expression from knowledgebase for link's anchor text extraction.

Parameters:
action - action id
Returns:
XPath expression for link's anchor text extraction

getKBLinkExtractExp

public static String getKBLinkExtractExp(String action)
Return the XPath expression for copying the link extraction expression from Knowledgebase.

Parameters:
action - action id
Returns:
XPath expression for links extraction

getKBListThreadlevelDetectExp

public static String getKBListThreadlevelDetectExp(String cms)
Return the XPath expression for copying the list of Thread level Detection Expression from Knowledgebase.

Parameters:
cms - content management system id
Returns:
XPath expression

getKBObjectExtractionEXP

public static String getKBObjectExtractionEXP(String action)
Return the XPath expression for copying the set of related objects expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getKBPageNavExp

public static String getKBPageNavExp(String action)
Return the XPath expression for copying the related page navigation expression from Knowledgebase.

Parameters:
action - action id
Returns:
XPath expression for page navigation

getKBProfileNameEXP

public static String getKBProfileNameEXP(String action)
Return the XPath expression for copying the profile name expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression

getKBThreadlevelDetectExp

public static String getKBThreadlevelDetectExp(String cms)
Return the XPath expression for copying the list of post level Detection Expression from Knowledgebase.

Parameters:
cms - content management system id
Returns:
XPath expression

getKBTitleEXP

public static String getKBTitleEXP(String action)
Return the XPath expression for copying the post title extraction expression from Knowledgebase.

Parameters:
action - action id
Returns:
XPath expression

getKBTweetStatusEXP

public static String getKBTweetStatusEXP(String action)
Return the XPath expression for copy the tweet status expression from knowledgebase.

Parameters:
action - action id
Returns:
XPath Expression