Examples of listProperties()


Examples of com.hp.hpl.jena.ontology.Individual.listProperties()

//                    RDFS.isDefinedBy.getURI(),
//                    RDFS.isDefinedBy.getLocalName(),
//                    RDFS.isDefinedBy.getLocalName(),
//                    individual.listIsDefinedBy(),relationsMap));
           
             createRelationsFromProperties(individual.listProperties(), relationsMap);
                  
            conceptRelations.addAll(relationsMap.values());
           
            concept.getInstanceof().getConceptDescriptions().addAll(createInstanceOf(individual));               
        }
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Ontology.listProperties()

    if ( ont != null ) {
      prexistStatements = new ArrayList<Statement>();
      if ( log.isDebugEnabled() ) {
        log.debug("Getting pre-existing properties from Ontology: " +ont.getURI());
      }
      StmtIterator iter = ont.listProperties();
      while ( iter.hasNext() ) {
        Statement st = iter.nextStatement();
        prexistStatements.add(st);
     
    }
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Ontology.listProperties()

    if ( ont != null ) {
      prexistStatements = new ArrayList<Statement>();
      if ( log.isDebugEnabled() ) {
        log.debug("Getting pre-existing properties from Ontology: " +ont.getURI());
      }
      StmtIterator iter = ont.listProperties();
      while ( iter.hasNext() ) {
        Statement st = iter.nextStatement();
        prexistStatements.add(st);
     
    }
View Full Code Here

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

                value = stmtval.getString();
                facet.addProperty(hasTextValueProperty, value);
               
              }else if(RDF.Seq.equals(p) || RDF.Alt.equals(p) || RDF.Bag.equals(p)){ // -- through a container
                Container containter = (RDF.Seq.equals(p)) ? stmtval.getSeq() : ( (RDF.Alt.equals(p)) ? stmtval.getAlt() : stmtval.getBag());
                StmtIterator stmtitbag = containter.listProperties();
                while(stmtitbag.hasNext()){
                  String s = stmtitbag.nextStatement().getString();
                 
                  if(s != null){
                    facet.addProperty(hasTextValueProperty, s);
View Full Code Here

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

      try
      {
        while (rsIter.hasNext())
        {
          final ReifiedStatement stmt = rsIter.next();
          iter = stmt.listProperties();
          while (iter.hasNext())
          {
            final Statement s = iter.next();
            checkDelete(s);
          }
View Full Code Here

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

          result.add(new GVSImpersonatePermission());
          result.add(new GVSSetClockPermission());
        }
        Resource userRes = getUserResource(principal.getUserName());
        if (userRes.hasProperty(RDF.type, AUTHORIZATION.ClockMaster));
        StmtIterator impersonateStmt = userRes.listProperties(AUTHORIZATION.mayImpersonate);
        while (impersonateStmt.hasNext()) {
          result.add(new GVSImpersonatePermission(new SourceImpl(impersonateStmt.nextStatement().getResource().toString())));
        }
      }
     
View Full Code Here

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

          FCAGraph revokeGraphTmp = null;
          if (user != null) {
            log
                .info("Username already exist, removing previous password");
            Model revokeModel = ModelFactory.createDefaultModel();
            revokeModel.add(user
                .listProperties(ACCOUNTMANAGER.passwordSha1));
            revokeModel.add(user.listProperties(FOAF.mbox_sha1sum));
            revokeModel.add(user
                .listProperties(ACCOUNTMANAGER.userName));
            revokeGraphTmp = new FCAGraphImpl(revokeModel);
View Full Code Here

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

            log
                .info("Username already exist, removing previous password");
            Model revokeModel = ModelFactory.createDefaultModel();
            revokeModel.add(user
                .listProperties(ACCOUNTMANAGER.passwordSha1));
            revokeModel.add(user.listProperties(FOAF.mbox_sha1sum));
            revokeModel.add(user
                .listProperties(ACCOUNTMANAGER.userName));
            revokeGraphTmp = new FCAGraphImpl(revokeModel);
            // store.revokeGraph(identity, new
            // FCAGraphImpl(revokeModel), now);
View Full Code Here

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

                .info("Username already exist, removing previous password");
            Model revokeModel = ModelFactory.createDefaultModel();
            revokeModel.add(user
                .listProperties(ACCOUNTMANAGER.passwordSha1));
            revokeModel.add(user.listProperties(FOAF.mbox_sha1sum));
            revokeModel.add(user
                .listProperties(ACCOUNTMANAGER.userName));
            revokeGraphTmp = new FCAGraphImpl(revokeModel);
            // store.revokeGraph(identity, new
            // FCAGraphImpl(revokeModel), now);
          }
View Full Code Here

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

        }
        else if (type.endsWith("#duration") && !rdf.isLiteral()) {
          // sum of all durations
          Duration duration = null;
          Resource r = (Resource) rdf;
          for (StmtIterator si = r.listProperties(RDF.value); si.hasNext(); ) {
            Duration d = schema.getDuration(si.nextStatement().getString());
            duration = duration==null?d:duration.add(d);
          }
          if (duration!=null)
            e.appendChild(doc.createTextNode(duration.toString()));
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.