Package de.anomic.data.ymark

Examples of de.anomic.data.ymark.YMarkMetadata.loadDocument()


          Log.logException(e);
        }
          } else if (isWordCount || isMetadata || isURLdb || isCrawlStart) {
            try {
                  final YMarkMetadata meta = new YMarkMetadata(new DigestURI(post.get(ROOT).substring(2)), sb.indexSegments);
              meta.loadDocument(sb.loader);
              if(isWordCount)  {
                final TreeMap<String,Word> words = meta.getWordCounts();
              final ArrayList<String> topwords = new ArrayList<String>(words.descendingKeySet());
              for(int i = 0; i < 20 && i < topwords.size(); i++) {
                String word = topwords.get(i);
View Full Code Here


          Log.logException(e);
        }
          } else if (isAutoTagger || isMetadata || isURLdb || isCrawlStart) {
            try {
                  final YMarkMetadata meta = new YMarkMetadata(new DigestURI(post.get(ROOT).substring(2)), sb.indexSegments);
              final Document document = meta.loadDocument(sb.loader);
              final TreeMap<String, YMarkTag> tags = sb.tables.bookmarks.getTags(bmk_user);
              if(isAutoTagger)  {
                prop.put("folders_"+count+"_foldername","<small><b>meta-"+YMarkMetadata.METADATA.KEYWORDS.name().toLowerCase()+":</b> " + meta.loadMetadata().get(YMarkMetadata.METADATA.KEYWORDS) + "</small>");
                putProp(count, "meta");
                count++;
View Full Code Here

          url=YMarkTables.PROTOCOLS.HTTP.protocol(url);
      }

          try {
        final YMarkMetadata meta = new YMarkMetadata(new DigestURI(url), sb.indexSegments);
        final Document document = meta.loadDocument(sb.loader);
        final EnumMap<YMarkMetadata.METADATA, String> metadata = meta.loadMetadata();

        prop.putXML("title", metadata.get(YMarkMetadata.METADATA.TITLE));
        prop.putXML("desc", metadata.get(YMarkMetadata.METADATA.DESCRIPTION));
        prop.put("keywords", putTags(document.dc_subject(','), "keywords"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.