Examples of createList()


Examples of com.hp.hpl.jena.ontology.OntModel.createList()

        .createIntersectionClass( null, model.createList( new RDFNode[] { D, E } ) );
    Resource i = model.createResource( ns + "i" );
    Resource j = model.createResource( ns + "j" );
    Resource k = model.createResource( ns + "k" );
    Property p = model.createObjectProperty( ns + "p" );
    RDFList list = model.createList( new RDFNode[] { p } );

    model.add( C, OWL2.hasKey, list );
    model.add( i, RDF.type, C );
    model.add( i, p, k );
    model.add( j, RDF.type, C );
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.createList()

    Resource i = model.createResource( ns + "i" );
    Resource j = model.createResource( ns + "j" );
    Resource k = model.createResource( ns + "k" );
    Property p = model.createObjectProperty( ns + "p" );
    RDFList list = model.createList( new RDFNode[] { p } );

    model.add( OWL.Thing, OWL2.hasKey, list );
    model.add( i, RDF.type, OWL.Thing );
    model.add( i, p, k );
    model.add( j, RDF.type, OWL.Thing );
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.createList()

   
    OntClass c3 = model.createClass( ns + "c3" );
    RDFNode[] l3 = new RDFNode[2];
    l3[0] = pi;
    l3[1] = ni;
    c3.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l3 ) ) ) );
    assertTrue( model.contains(c3, RDFS.subClassOf, OWL2.Nothing ) );
   
    OntClass c4 = model.createClass( ns + "c4" );
    RDFNode[] l41 = new RDFNode[2];
    l41[0] = pi;
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.createList()

 
  public boolean toRDF(Resource subject, Property prop, Seq seq, Node node, String value, Set<restriction> restrictions, Context ctx)
  throws Exception {
    Model m = ctx.getModel();
    schema xs = (schema) this.get_owner();
    RDFList l= m.createList();

    simpleType t = get_type(ctx);
    String type = expandQName(ctx.getDefaultNS(),itemType, m);
   
    StringTokenizer tok = new StringTokenizer(value);
View Full Code Here

Examples of com.springsource.insight.intercept.operation.Operation.createList()

    public void testLocalViewWithStatus() throws Exception {
        Operation operation = new Operation()
                .put("requestMethod", "PUT")
                .put("requestUri", "/my/uri")
                .put("actionName", "actionName");
        OperationList actionParams = operation.createList("actionParams");
        actionParams.createMap().put("key", "keyA").put("value", "valA");
        actionParams.createMap().put("key", "keyB").put("value", "valB");
        actionParams.createMap().put("key", "keyC").put("value", "valC");

        model.put("operation", operation.asMap());
View Full Code Here

Examples of com.xmlcalabash.io.DataStore.createList()

        tree.addStartElement(XProcConstants.c_result);
        tree.startContent();

        try {
            DataStore store = runtime.getDataStore();
            URI uri = store.createList(href.getString(), href.getBaseURI().toASCIIString());
            tree.addText(uri.toASCIIString());
        } catch (FileNotFoundException e) {
            throw new XProcException(step.getNode(), "Cannot mkdir: file exists: " + href.getString());
        } catch (IOException e) {
            throw new XProcException(step.getNode(), "Mkdir failed for: " + href.getString());
View Full Code Here

Examples of de.willuhn.datasource.rmi.DBService.createList()

    // Kontonummer bestand offensichtlich nur aus Nullen ;)
    if (kontonummer.length() == 0)
      return null;
   
    DBService service = de.willuhn.jameica.hbci.Settings.getDBService();
    DBIterator konten = service.createList(Konto.class);
    konten.addFilter("kontonummer like ?", new Object[]{"%" + kontonummer});
    konten.addFilter("blz = ?", new Object[]{blz});
    while (konten.hasNext())
    {
      // Fuehrende Nullen abschneiden und dann vergleichen
View Full Code Here

Examples of de.willuhn.datasource.rmi.DBService.createList()

    iban = StringUtils.trimToNull(iban);
    if (iban == null)
      return null;
   
    DBService service = de.willuhn.jameica.hbci.Settings.getDBService();
    DBIterator konten = service.createList(Konto.class);
    konten.addFilter("lower(iban) = ?", iban.toLowerCase()); // case insensitive
    while (konten.hasNext())
    {
      Konto test = (Konto) konten.next();
      int current = test.getFlags();
View Full Code Here

Examples of de.willuhn.datasource.rmi.DBService.createList()

    if (name == null)
      return null;
   
    // Mal schauen, ob wir das Property schon haben
    DBService service = Settings.getDBService();
    DBIterator i = service.createList(DBProperty.class);
    i.addFilter("name = ?",name);
    if (i.hasNext())
      return (DBProperty) i.next();

    // Ne, dann neu anlegen
View Full Code Here

Examples of de.willuhn.datasource.rmi.DBService.createList()

      String konto = (String) params.get("my.account");
      String blz   = (String) params.get("my.blz");
      boolean stored = false;
      if (konto != null && blz != null)
      {
        DBIterator list = service.createList(Konto.class);
        list.addFilter("kontonummer = ?", new Object[]{konto});
        list.addFilter("blz = ?",         new Object[]{blz});
        if (list.hasNext())
        {
          // Jepp, wir haben das Konto.
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.