Package org.data2semantics.RDFmodel

Examples of org.data2semantics.RDFmodel.StringTree


  public List<Integer> partition() {
    URIDistinguisher D = new URIDistinguisher(_boundary, _ST);
    IndexMap<StringTree> map = new IndexMap<StringTree>();
    List<List<String>> res = new ArrayList<List<String>>();
    for (String uristr : _uris) {
      StringTree st = D.get_node(uristr);
      int cell = map.map(st);
      if (cell == res.size()) res.add(new ArrayList<String>());
      res.get(cell).add(uristr);
    }
    List<Integer> sizes = new ArrayList<Integer>();
View Full Code Here


 
  @Main public void main() {
    _uris = new ArrayList<String>();
    _lits = new ArrayList<Literal>();
    _G = new RDFGraph(new RDFGraph.TripleFile(_fn)); // FIXME: URIs uninitialized!
    _ST = new StringTree(_uris);
    Pair<Boundary,Set<Integer>> pair = findBoundaryAndTBox(_G, _uris, _ST);
    _boundary = pair.getLeft();
    _tbox = pair.getRight();
  }
View Full Code Here

  @Main
  public void main() {
    _uris = new ArrayList<String>();
    _lits = new ArrayList<Literal>();
    _G = new RDFGraph(new RDFGraph.TripleFile(_fn)); // FIXME: URIs uninitialized!
    _ST = new StringTree(_uris);
    _tbox = tbox_heuristic_most_incoming(_G, _minlinks);
    _boundary = findBestBoundary(_G, _uris, _tbox, _ST);
    codelengths();
  }
View Full Code Here

TOP

Related Classes of org.data2semantics.RDFmodel.StringTree

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.