Package org.deri.grefine.rdf.vocab

Examples of org.deri.grefine.rdf.vocab.SearchResultItem


      String label = doc.get("label");
      String description = doc.get("description");
      String prefix = doc.get("prefix");
      String lPart = doc.get("localPart");

      SearchResultItem item = new SearchResultItem(uri, prefix, lPart,
          label, description);
      res.add(item);
    }

    return res;
View Full Code Here


        String prefix = query.substring(0,index);
        String lPart = query.substring(index + 1);
        for(Vocabulary v:schema.getPrefixesMap().values()){
          String name = v.getName();
          if (name.equals(prefix)){
            result.add(new SearchResultItem(v.getUri()+lPart, prefix, lPart, "", "Not in the imported vocabulary definition"));
          }
        }
      }else{
        for(Vocabulary v:schema.getPrefixesMap().values()){
          String name = v.getName();
          if (name.startsWith(query)){
            result.add(new SearchResultItem(v.getUri(), name, "", "", "Not in the imported vocabulary definition"));
          }
        }
      }
      return result;
    }
View Full Code Here

TOP

Related Classes of org.deri.grefine.rdf.vocab.SearchResultItem

Copyright © 2018 www.massapicom. 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.