Examples of StmtKey


Examples of org.mmisw.orrclient.core.util.ontinfo.StmtKey

      Map<String,String> mappingMetadata = new HashMap<String,String>();
      mappingMetadata.put(RDFS.comment.getURI(), comments[i]);
      mappingMetadata.put(Vine.confidence.getURI(), confidences[i]);
      mapping.setMetadata(mappingMetadata);
      mappings.add(mapping);
      originalTriples.add(new StmtKey(mapp[0], mapp[1], mapp[2]));
    }   
    CreateOntologyInfo coi = new CreateOntologyInfo();
    coi.setUri(ontologyUri);
    coi.setAuthority(authority);
    coi.setShortName(shortName);
View Full Code Here

Examples of org.mmisw.orrclient.core.util.ontinfo.StmtKey

    MappingOntologyData mod = (MappingOntologyData) od;
    List<Mapping> mappings = mod.getMappings();
    Set<StmtKey> retrievedTriples = new HashSet<StmtKey>();
    for ( int i = 0; i < mapps.length; i++ ) {
      Mapping mapping = mappings.get(i);
      retrievedTriples.add(new StmtKey(mapping.getLeft(), mapping.getRelation(), mapping.getRight()));
    }
   
    assertEquals(originalTriples.size(), retrievedTriples.size());
    for ( StmtKey originalKey : originalTriples ) {
      assertTrue("retrieved mapping is a original one", retrievedTriples.contains(originalKey));
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.