Package com.hp.hpl.jena.ontology

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


        }

        if (datatypeProperty != null) {
            for (String value : property.getValue()) {
                individual.setPropertyValue(datatypeProperty,
                    ontModel.createTypedLiteral(value, datatypeProperty.getRange().getURI()));
            }
        } else {
            logger.warn("There is no datatype property create property ref {}", propDef.getUniqueRef());
        }
View Full Code Here


        ObjectProperty jenaobprop = model.createObjectProperty(OP.toString());
        DatatypeProperty jenadataprop = model.createDatatypeProperty(DP.toString());
        Individual jenasub = model.createIndividual(SUBJECT.toString(), jenaclass);
        Individual jenaobj = model.createIndividual(OBJECT.toString(), jenaclass);
        AnnotationProperty jenaanno = model.createAnnotationProperty(label.toString());
        Literal value = model.createTypedLiteral(VALUE, DATATYPE.toString());

        model.add(jenasub, jenaobprop, jenaobj);
        model.add(jenasub, jenadataprop, value);
        model.add(jenasub, jenaanno, "Lucy", "en");
View Full Code Here

        // kam type KAM
        kamResource.addProperty(RDF.type, KAM);

        // kam hasName "kam"^^xsd:string
        kamResource.addProperty(hasName,
                model.createTypedLiteral(kamInfo.getName()));

        // kam hasDescription "kam"^^xsd:string
        kamResource.addProperty(hasDescription,
                model.createTypedLiteral(kamInfo.getDescription()));
View Full Code Here

        kamResource.addProperty(hasName,
                model.createTypedLiteral(kamInfo.getName()));

        // kam hasDescription "kam"^^xsd:string
        kamResource.addProperty(hasDescription,
                model.createTypedLiteral(kamInfo.getDescription()));

        Map<Integer, Resource> documents = new HashMap<Integer, Resource>();
        Map<Integer, Resource> annotationDefinitions =
                new HashMap<Integer, Resource>();
        Map<Integer, Resource> annotations = new HashMap<Integer, Resource>();
View Full Code Here

            docResource.addProperty(RDF.type, BelDocument);

            // handle document fields
            if (doc.getAuthors() != null) {
                docResource.addProperty(hasAuthor,
                        model.createTypedLiteral(doc.getAuthors()));
            }

            if (doc.getContactInfo() != null) {
                docResource.addProperty(hasContactInfo,
                        model.createTypedLiteral(doc.getContactInfo()));
View Full Code Here

                        model.createTypedLiteral(doc.getAuthors()));
            }

            if (doc.getContactInfo() != null) {
                docResource.addProperty(hasContactInfo,
                        model.createTypedLiteral(doc.getContactInfo()));
            }

            if (doc.getCopyright() != null) {
                docResource.addProperty(hasCopyright,
                        model.createTypedLiteral(doc.getCopyright()));
View Full Code Here

                        model.createTypedLiteral(doc.getContactInfo()));
            }

            if (doc.getCopyright() != null) {
                docResource.addProperty(hasCopyright,
                        model.createTypedLiteral(doc.getCopyright()));
            }

            if (doc.getDescription() != null) {
                docResource.addProperty(hasDescription,
                        model.createTypedLiteral(doc.getDescription()));
View Full Code Here

                        model.createTypedLiteral(doc.getCopyright()));
            }

            if (doc.getDescription() != null) {
                docResource.addProperty(hasDescription,
                        model.createTypedLiteral(doc.getDescription()));
            }

            if (doc.getDisclaimer() != null) {
                docResource.addProperty(hasDisclaimer,
                        model.createTypedLiteral(doc.getDisclaimer()));
View Full Code Here

                        model.createTypedLiteral(doc.getDescription()));
            }

            if (doc.getDisclaimer() != null) {
                docResource.addProperty(hasDisclaimer,
                        model.createTypedLiteral(doc.getDisclaimer()));
            }

            if (doc.getLicenseInfo() != null) {
                docResource.addProperty(hasLicense,
                        model.createTypedLiteral(doc.getLicenseInfo()));
View Full Code Here

                        model.createTypedLiteral(doc.getDisclaimer()));
            }

            if (doc.getLicenseInfo() != null) {
                docResource.addProperty(hasLicense,
                        model.createTypedLiteral(doc.getLicenseInfo()));
            }

            if (doc.getName() != null) {
                docResource.addProperty(hasName,
                        model.createTypedLiteral(doc.getName()));
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.