2009-03-02 00:58:14 +01:00
// Reference.java
2008-07-20 19:14:51 +02:00
// (C) 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany
2007-11-07 23:38:09 +01:00
// first published 07.11.2007 on http://www.anomic.de
2006-05-20 01:19:20 +02:00
//
// This is a part of YaCy, a peer-to-peer based web search engine
//
// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $
// $LastChangedRevision: 1986 $
// $LastChangedBy: orbiter $
//
// LICENSE
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2009-03-02 11:00:32 +01:00
package de.anomic.kelondro.text ;
2006-05-20 01:19:20 +02:00
2009-01-30 23:08:08 +01:00
import de.anomic.kelondro.order.Bitfield ;
2007-03-21 16:35:35 +01:00
2009-03-02 00:58:14 +01:00
public interface Reference {
2007-03-21 16:35:35 +01:00
// appearance flags, used in RWI entry
2008-01-22 20:03:47 +01:00
// some names are derived from the Dublin Core Metadata tag set
2007-03-21 16:35:35 +01:00
// the flags 0..23 are identical to the category flags in plasmaCondenser
2008-01-22 20:03:47 +01:00
public static final int flag_app_dc_description = 24 ; // word appears in anchor description text (the reference to an url), or any alternative text field of a link
public static final int flag_app_dc_title = 25 ; // word appears in title or headline or any description part
public static final int flag_app_dc_creator = 26 ; // word appears in author
public static final int flag_app_dc_subject = 27 ; // word appears in header tags or other descriptive part
public static final int flag_app_dc_identifier = 28 ; // word appears in url or document identifier
2007-03-21 16:35:35 +01:00
public static final int flag_app_emphasized = 29 ; // word is emphasized in text (i.e. bold, italics, special size)
2007-11-07 23:38:09 +01:00
public String toPropertyForm ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public String urlHash ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int virtualAge ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public long lastModified ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public long freshUntil ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int hitcount ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int posintext ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int posinphrase ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int posofphrase ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int wordsintext ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int phrasesintext ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public String getLanguage ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public char getType ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int wordsintitle ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int llocal ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int lother ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int urllength ( ) ;
2007-03-21 16:35:35 +01:00
2007-11-07 23:38:09 +01:00
public int urlcomps ( ) ;
2007-03-21 16:35:35 +01:00
2009-01-30 16:33:00 +01:00
public Bitfield flags ( ) ;
2007-03-21 16:35:35 +01:00
2008-01-29 17:41:09 +01:00
public double termFrequency ( ) ;
2007-11-07 23:38:09 +01:00
public String toString ( ) ;
2007-03-21 16:35:35 +01:00
2009-03-02 00:58:14 +01:00
public boolean isNewer ( Reference other ) ;
2007-03-21 16:35:35 +01:00
2009-03-02 00:58:14 +01:00
public boolean isOlder ( Reference other ) ;
2007-03-21 16:35:35 +01:00
2008-02-21 11:06:57 +01:00
public int hashCode ( ) ;
2007-03-21 16:35:35 +01:00
}