Package com.hp.hpl.jena.ontology

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


                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

    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

    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

    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

    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

    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

    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

        .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

    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

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.