Examples of addAll()


Examples of org.openrdf.model.Graph.addAll()

      if (aGraph == null) {
        aGraph = Graphs.newGraph();
      }

      aGraph.addAll(theGraph);

      mAdd.put(theGraphURI, aGraph);
    }
   
    /**
 
View Full Code Here

Examples of org.openrdf.model.impl.AbstractModel.addAll()

        for (File file : files) {
            try {
                InputStream inputStream = new FileInputStream(file);
                String baseURI = "http://example.org/baseuri/";
                org.openrdf.model.Model statements = Rio.parse(inputStream, baseURI, RDFFormat.JSONLD);
                model.addAll(statements);
            } catch (Exception e) {
                System.out.println("Skipped " + file.getAbsolutePath() + " due to " + e.getMessage());
            }
        }
        System.out.println("Model size = " + model.size());
View Full Code Here

Examples of org.openrdf.model.impl.GraphImpl.addAll()

    try {
      Graph aGraph = RdfGenerator.asRdf(aBob);

      // this is the set of data that would normally be in the database
      Graph aSourceGraph = new GraphImpl();
      aSourceGraph.addAll(aGraph);
      aSourceGraph.addAll(RdfGenerator.asRdf(aJoe));
      aSourceGraph.addAll(RdfGenerator.asRdf(aJane));

      TestPerson aPerson = RdfGenerator.fromRdf(TestPerson.class, aBob.getRdfId(), new TestDataSource(aSourceGraph));
View Full Code Here

Examples of org.openrdf.model.impl.LinkedHashModel.addAll()

        for (File file : files) {
            try {
                InputStream inputStream = new FileInputStream(file);
                String baseURI = "http://example.org/baseuri/";
                org.openrdf.model.Model statements = Rio.parse(inputStream, baseURI, RDFFormat.JSONLD);
                model.addAll(statements);
            } catch (Exception e) {
                System.out.println("Skipped " + file.getAbsolutePath() + " due to " + e.getMessage());
            }
        }
        System.out.println("Model size = " + model.size());
View Full Code Here

Examples of org.openrdf.query.algebra.evaluation.QueryBindingSet.addAll()

    if (next == null) {
      return null;
    }
    int size = bindings.size() + next.size();
    QueryBindingSet set = new QueryBindingSet(size);
    set.addAll(bindings);
    for (Binding binding : next) {
      set.setBinding(binding);
    }
    return set;
  }
View Full Code Here

Examples of org.opensaml.xml.security.CriteriaSet.addAll()

    public boolean validate(Signature signature, CriteriaSet trustBasisCriteria) throws SecurityException {

        checkParams(signature, trustBasisCriteria);

        CriteriaSet criteriaSet = new CriteriaSet();
        criteriaSet.addAll(trustBasisCriteria);
        if (!criteriaSet.contains(UsageCriteria.class)) {
            criteriaSet.add(new UsageCriteria(UsageType.SIGNING));
        }
        String jcaAlgorithm = SecurityHelper.getKeyAlgorithmFromURI(signature.getSignatureAlgorithm());
        if (!DatatypeHelper.isEmpty(jcaAlgorithm)) {
View Full Code Here

Examples of org.osm2world.core.map_elevation.data.EleConnectorGroup.addAll()

    public EleConnectorGroup getEleConnectors() {
     
      EleConnectorGroup eleConnectors = super.getEleConnectors();
     
      if (pinConnectors != null) {
        eleConnectors.addAll(pinConnectors);
      }
     
      return eleConnectors;
     
    }
View Full Code Here

Examples of org.pdfbox.cos.COSDictionary.addAll()

                    COSDictionary trailer = new COSDictionary();
                    Iterator xrefIter = document.getObjectsByType( "XRef" ).iterator();
                    while( xrefIter.hasNext() )
                    {
                        COSStream next = (COSStream)((COSObject)xrefIter.next()).getObject();
                        trailer.addAll( next );
                    }
                    document.setTrailer( trailer );
                }
                if( !document.isEncrypted() )
                {
View Full Code Here

Examples of org.platformlayer.core.model.Tags.addAll()

    request.hostPolicy = model.hostPolicy;

    Tags tags = new Tags();

    tags.addAll(Tag.HOST_POLICY.filter(tags));

    request.tags = tags;
    if (model.securityGroup != null) {
      request.securityGroups = Lists.newArrayList();
      request.securityGroups.add(model.securityGroup);
View Full Code Here

Examples of org.python.core.PyList.addAll()

        int nextIndex = 0;
        while (nextIndex < payload.length()) {
            Bindings bindings = new SimpleBindings();
            bindings.put("payload", payload.substring(nextIndex));
            unpickleScript.eval(bindings);
            result.addAll(result.size(), (PyList) bindings.get("metrics"));
            nextIndex += (Integer) bindings.get("batchLength");
        }

        for (Object aResult : result) {
            PyTuple datapoint = (PyTuple) aResult;
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.