Examples of addProperty()


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

   
   
    ///////////////////////////////////////////////////////
    // Update attributes in model:
   
    ont_.addProperty(Omv.uri, base_);
    if ( version != null ) {
      ont_.addProperty(Omv.version, version);
    }
    ont_.addProperty(Omv.creationDate, creationDate);

Examples of com.hp.hpl.jena.rdf.model.Property.addProperty()

    log.info("Testing rdfs:subPropertyOf inference with RDFS reasoner");

    // We invent a property to extend foaf:knows
    Property collegueOf = TestData.model.createProperty(TestData.TEST_NS
        + "collegueOf");
    collegueOf.addProperty(RDFS.subPropertyOf, TestData.foaf_knows);
   
    // Prepare data
    TestData.alexdma.addProperty(collegueOf, TestData.enridaga);

    // Setup input for the reasoner

Examples of com.hp.hpl.jena.rdf.model.RDFNode.addProperty()

            .getResource(AdmireRegistryConstants.PlatformOntologyURI
                + elementName);
        Resource objectST = model
            .createResource(AdmireRegistryConstants.PlatformOntologyURI
                + "deleted");
        objectST
            .addProperty(
                model
                    .getProperty(AdmireRegistryConstants.RDFType),
                model
                    .createResource(AdmireRegistryConstants.PlatformOntologyURI

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

        Statement stmt = model.createStatement(ResourceFactory
                                               .createResource("urn:test:t1"), RDFS.label, "foo1");
       
        model.add(stmt);
        ReifiedStatement rs = stmt.createReifiedStatement();
        rs.addProperty(ResourceFactory.createProperty("urn:property:foo"),"Foo");

        System.out.println("Model:");
        model.write(System.out, "N-TRIPLES");
        System.out.println();

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

        RDFNode v1 = model.createTypedLiteral("1", XSDDatatype.XSDinteger) ;
        RDFNode v2 = model.createTypedLiteral("2", XSDDatatype.XSDinteger) ;
       
        r1.addProperty(p1, v1).addProperty(p1, v2) ;
        r1.addProperty(p2, v1).addProperty(p2, v2) ;
        r2.addProperty(p1, v1).addProperty(p1, v2) ;
       
        return model  ;
    }
}

Examples of com.hp.hpl.jena.rdf.model.Seq.addProperty()

    Seq languageSelectionSeq = targetModel.createSeq();
    for (Iterator iter = languageSelectionList.iterator(); iter.hasNext();) {
      Resource current = (Resource) iter.next();
      languageSelectionSeq.add(current);
    }
    languageSelectionSeq.addProperty(RDF.type,
        LANGUAGE.LanguageSelectionSeq);
  }

  /*
   * (non-Javadoc)
 

Examples of com.ibm.ucp.Component.addProperty()

        // pixeldepth -> BitsPerPixel
        int pixelDepth = getPolicyValueAsInt(device, "pixeldepth", 0);
        if (pixelDepth > 0) {
            Property bitsPerPixelProperty = new Property("BitsPerPixel",
                    new Integer(pixelDepth));
            hardwarePlatformComponent.addProperty(bitsPerPixelProperty);
        }
           
        // rendermode -> ColorCapable
        String renderMode = device.getComputedPolicyValue("rendermode");
        if (renderMode != null) {

Examples of com.intellij.execution.configurations.ParametersList.addProperty()

        installBundles.add(bundleUrl);
      }
    }

    for (Integer startLevel : startBundles.keySet()) {
      vmParameters.addProperty("felix.auto.start." + startLevel, StringUtil.join(startBundles.get(startLevel), " "));
    }
    if (!installBundles.isEmpty()) {
      vmParameters.addProperty("felix.auto.install.1", StringUtil.join(installBundles, " "));
    }

Examples of com.l2fprod.common.beans.BaseBeanInfo.addProperty()

  }

  private final BeanInfo getAnnotationBeanInfo(List<Field> pFields) {
    BaseBeanInfo res = new BaseBeanInfo(this.getClass());
    for (Field field : pFields) {
      ExtendedPropertyDescriptor propDesc = res.addProperty(field.getName());
      Property propAnno = field.getAnnotation(Property.class);
      if (propAnno.description().length() > 0)
        propDesc.setShortDescription(propAnno.description());
      propDesc.setCategory(propAnno.category().toString());
      if (propAnno.editorClass() != Property.DEFAULT.class)

Examples of com.l2fprod.common.propertysheet.PropertySheetTableModel.addProperty()

                        public void writeToObject(Object o)
                        {
                            throw new UnsupportedOperationException("Method writeToObject not yet implemented");
                        }
                    };
                    propertySheetTableModel.addProperty(p);
                }
                final PropertySheetTable table = new PropertySheetTable(propertySheetTableModel);
                new Thread(new Runnable()
                {
                    public void run()
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.