Package org.apache.marmotta.commons.sesame.tripletable

Examples of org.apache.marmotta.commons.sesame.tripletable.IntArray


            KiWiTriple result = new KiWiTriple(subject,predicate,object,context, importDate);

            // statement existance check; use the triple registry to lookup if there are any concurrent triple creations
            if(config.isStatementExistanceCheck()) {
                IntArray cacheKey = IntArray.createSPOCKey(subject, predicate, object, context);
                long tripleId = registry.lookupKey(cacheKey);

                if(tripleId >= 0) {
                    // try getting id from registry
                    result.setId(tripleId);
View Full Code Here


     * @return The created statement.
     */
    public Statement createStatement(Resource subject, URI predicate, Value object, Resource context, KiWiConnection connection) {
        try {

            IntArray cacheKey = IntArray.createSPOCKey(subject, predicate, object, context);

            KiWiResource ksubject   = convert(subject);
            KiWiUriResource kpredicate = convert(predicate);
            KiWiNode kobject    = convert(object);
            KiWiResource    kcontext   = convert(context);
View Full Code Here

     * Remove a statement from the triple registry. Called when the statement is deleted and the transaction commits.
     * @param triple
     */
    protected void removeStatement(KiWiTriple triple) {
        if(triple.getId() >= 0) {
            IntArray cacheKey = IntArray.createSPOCKey(triple.getSubject(), triple.getPredicate(), triple.getObject(), triple.getContext());

            synchronized (registry) {
                registry.deleteKey(cacheKey);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.commons.sesame.tripletable.IntArray

Copyright © 2018 www.massapicom. 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.