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

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


    com.hp.hpl.jena.rdf.model.Resource foafOrg = model.createResource(uri);
    Statement s = model.createStatement(foafOrg, RDF.type,
        Foaf.ORGANIZATION);
    model.add(s);

    IOrganisation org = new Organisation(foafOrg);
    return org;
  }
View Full Code Here


  public IOrganisation get(String uri)
      throws SimalRepositoryException {
    Model model = ((JenaSimalRepository) getRepository()).getModel();
    if (getRepository().containsOrganisation(uri)) {
      return new Organisation(model.getResource(uri));
    } else {
      return null;
    }
  }
View Full Code Here

    Model model = ((JenaSimalRepository) getRepository()).getModel();
    StmtIterator itr = model.listStatements(null, RDF.type,
        Foaf.ORGANIZATION);
    Set<IOrganisation> orgs = new HashSet<IOrganisation>();
    while (itr.hasNext()) {
      orgs.add(new Organisation(itr.nextStatement().getSubject()));
    }
    return orgs;
  }
View Full Code Here

TOP

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

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.