Examples of createList()


Examples of com.bergerkiller.bukkit.common.nbt.CommonTagCompound.createList()

      if (data.containsKey("Attributes")) {
        NBTUtil.loadAttributes(player, data.get("Attributes", CommonTagList.class));
      }

      // Load the data
      NBTUtil.loadInventory(player.getInventory(), data.createList("Inventory"));
      EntityHumanRef.exp.set(playerHandle, data.getValue("XpP", 0.0f));
      EntityHumanRef.expLevel.set(playerHandle, data.getValue("XpLevel", 0));
      EntityHumanRef.expTotal.set(playerHandle, data.getValue("XpTotal", 0));

      if (Common.MC_VERSION.equals("1.5.2")) {
View Full Code Here

Examples of com.github.jmkgreen.morphia.ObjectFactory.createList()

            return vals;
    }

    private Collection<?> createNewCollection(final MappedField mf) {
        ObjectFactory of = mapr.getOptions().objectFactory;
        return mf.isSet() ? of.createSet(mf) : of.createList(mf);
    }

    @Override
    public Object encode(Object value, MappedField mf) {
View Full Code Here

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

                    List<String> domain =
                            kAMStore.getAnnotationTypeDomainValues(kamInfo,
                                    annotationType);

                    if (hasItems(domain)) {
                        RDFList enumres = model.createList();
                        enumres.setStrict(true);

                        // iterate domain to pre-build RDF resources and associate domain value
                        Resource[] itemResources = new Resource[domain.size()];
                        String[] domainValues =
View Full Code Here

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

                termResource.addProperty(hasLabel,
                        model.createTypedLiteral(term.getLabel()));
                termResource.addProperty(hasFunction,
                        resourceForFunction(kamNode.getFunctionType()));

                RDFList argumentres = model.createList();

                List<TermParameter> termParameters =
                        kAMStore.getTermParameters(kamInfo, term);
                TermParameter[] tparray = termParameters
                        .toArray(new TermParameter[termParameters.size()]);
View Full Code Here

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

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

    model.add( C, OWL2.hasKey, list );
    model.add( i, RDF.type, C );
    model.add( i, p1, k );
    model.add( i, p2, l );
View Full Code Here

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

    Resource C = model.createClass( ns + "C" );
    Resource i = model.createResource( ns + "i" );
    Resource j = model.createResource( ns + "j" );
    Literal k = model.createLiteral( "k" );
    Property p = model.createDatatypeProperty( 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 D = model.createClass( ns + "D" );
    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, D );
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" );
    Resource l = model.createResource( ns + "l" );
    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" );
    Property q = model.createObjectProperty( ns + "q" );
    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()

    OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );

    OntClass D = model.createClass( ns + "D" );
    OntClass E = model.createClass( ns + "E" );
    OntClass C = model
        .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 } );
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.