Examples of LiteralImpl


Examples of org.openrdf.model.impl.LiteralImpl

            }
            if (!RDFUtils.isAbsoluteURI(header[index])) {
                out.writeTriple(
                        singleHeader,
                        RDFS.LABEL,
                        new LiteralImpl(header[index])
                );
            }
            out.writeTriple(
                    singleHeader,
                    csv.columnPosition,
                    new LiteralImpl(String.valueOf(index), XMLSchema.INTEGER)
            );
            index++;
        }
    }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

            if (isInteger(cell)) {
                datatype = XMLSchema.INTEGER;
            } else if(isFloat(cell)) {
                datatype = XMLSchema.FLOAT;
            }
            object = new LiteralImpl(cell, datatype);
        }
        return object;
    }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

            int numberOfRows,
            int numberOfColumns) {
        out.writeTriple(
                documentURI,
                csv.numberOfRows,
                new LiteralImpl(String.valueOf(numberOfRows), XMLSchema.INTEGER)
        );
        out.writeTriple(
                documentURI,
                csv.numberOfColumns,
                new LiteralImpl(String.valueOf(numberOfColumns), XMLSchema.INTEGER)
        );
    }
View Full Code Here

Examples of org.openrdf.model.impl.LiteralImpl

                null
        );
        jsonWriter.receiveTriple(
                new URIImpl("http://sub/2"),
                new URIImpl("http://pred/2"),
                new LiteralImpl("language literal", "en"),
                new URIImpl("http://graph/2"),
                null
        );
        jsonWriter.receiveTriple(
                new URIImpl("http://sub/3"),
                new URIImpl("http://pred/3"),
                new LiteralImpl("123", new URIImpl("http://datatype")),
                null,
                null
        );
        jsonWriter.endDocument(documentURI);
        jsonWriter.close();
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.