Package uk.ac.osswatch.simal.model.jena

Examples of uk.ac.osswatch.simal.model.jena.Licence


    assertTrue(licences.contains(getLicence(TEST_SIMAL_PROJECT_LICENCE_TWO)));
  }
 
  private IDoapLicence getLicence(String uri) {
    Resource resource = ((JenaSimalRepository)repository).getModel().createResource(TEST_SIMAL_PROJECT_LICENCE_ONE);
    return new Licence(resource);  
  }
View Full Code Here


    Property o = model.createProperty(CC_LICENCE);
    StmtIterator itr = model.listStatements(null, RDF.type, o);
    Set<IDoapLicence> licences = new HashSet<IDoapLicence>();
    while (itr.hasNext()) {
      String uri = itr.nextStatement().getSubject().getURI();
      licences.add(new Licence(model.getResource(uri)));
    }
    return licences;
  }
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.model.jena.Licence

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.