Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.Resource.listProperties()


        // be more than one level. Basically each Lite test is also a
        // Full
        // test and now this information is given explicitly in Manifest
        // So loop through all the levels and find the tight bound
        int level = 3; // 0 - Lite, 1 - DL, 2 - Full
        StmtIterator si = testCase.listProperties( OWLTestVocabulary.level );
        while( si.hasNext() ) {
          Statement s = si.nextStatement();
          String levelName = s.getResource().getLocalName();
          if( level > LEVELS.indexOf( levelName ) ) {
            levelStmt = s;
View Full Code Here


  }

  public IDocument ensureDocumentType() throws IncompatibleTypeException {
    Resource r = getJenaResource();
    Model model = r.getModel();
    Set<Statement> set = r.listProperties(RDF.type).toSet();

    if (set.size() > 0) {
      Resource type = set.iterator().next().getResource();
      if (!type.equals(FOAF.Document)) {
        throw new IncompatibleTypeException("Expected resource " + r
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.