Package org.openrdf.model

Examples of org.openrdf.model.Value.stringValue()


                KiWiNode n = (KiWiNode) v;
                j_triple.addCondition(triple.SUBJECT_ID.equal((Field) create.val(n.getId())));
            } else if(v instanceof URI) {

                if(configurationService.getBooleanConfiguration("sparql.native.preload_constants",true)) {
                    KiWiUriResource r_subject = resourceService.getUriResource(v.stringValue());
                    if(r_subject != null) {
                        j_triple.addCondition(triple.SUBJECT_ID.equal((Field) create.val(r_subject.getId())));
                    } else {
                        j_triple.addCondition(create.falseCondition());
                    }
View Full Code Here


                    } else {
                        j_triple.addCondition(create.falseCondition());
                    }
                } else {
                    // performance improvement: if uri already was used, reuse the node instead of doing a new join
                    if(uriNodes.containsKey(v.stringValue())) {
                        t_subject = uriNodes.get(v.stringValue());
                        Condition c_subject = triple.SUBJECT_ID.equal((Field) t_subject.ID);
                        j_triple.addCondition(c_subject);
                        j_triple.addBackCondition(c_subject);
                    } else {
View Full Code Here

                        j_triple.addCondition(create.falseCondition());
                    }
                } else {
                    // performance improvement: if uri already was used, reuse the node instead of doing a new join
                    if(uriNodes.containsKey(v.stringValue())) {
                        t_subject = uriNodes.get(v.stringValue());
                        Condition c_subject = triple.SUBJECT_ID.equal((Field) t_subject.ID);
                        j_triple.addCondition(c_subject);
                        j_triple.addBackCondition(c_subject);
                    } else {
                        resultTables.add(j_subject);
View Full Code Here

                        Condition c_subject = triple.SUBJECT_ID.equal((Field) t_subject.ID);
                        j_triple.addCondition(c_subject);
                        j_triple.addBackCondition(c_subject);
                    } else {
                        resultTables.add(j_subject);
                        j_subject.addCondition(t_subject.URI.equal((Field) create.val(v.stringValue())));
                        j_subject.addCondition(triple.SUBJECT_ID.equal((Field) t_subject.ID));
                        uriNodes.put(v.stringValue(),t_subject);
                    }
                }
View Full Code Here

                        j_triple.addBackCondition(c_subject);
                    } else {
                        resultTables.add(j_subject);
                        j_subject.addCondition(t_subject.URI.equal((Field) create.val(v.stringValue())));
                        j_subject.addCondition(triple.SUBJECT_ID.equal((Field) t_subject.ID));
                        uriNodes.put(v.stringValue(),t_subject);
                    }
                }

            } else if(v instanceof BNode) {
                resultTables.add(j_subject);
View Full Code Here

            if(v instanceof KiWiNode && ((KiWiNode) v).getId() != null) {
                KiWiNode n = (KiWiNode) v;
                j_triple.addCondition(triple.PROPERTY_ID.equal((Field) create.val(n.getId())));
            } else if(v instanceof URI) {
                if(configurationService.getBooleanConfiguration("sparql.native.preload_constants",true)) {
                    KiWiUriResource r_property = resourceService.getUriResource(v.stringValue());
                    if(r_property != null) {
                        j_triple.addCondition(triple.PROPERTY_ID.equal((Field) create.val(r_property.getId())));
                    } else {
                        j_triple.addCondition(create.falseCondition());
                    }
View Full Code Here

                    } else {
                        j_triple.addCondition(create.falseCondition());
                    }
                } else {
                    // performance improvement: if uri already was used, reuse the node instead of doing a new join
                    if(uriNodes.containsKey(v.stringValue())) {
                        t_property = uriNodes.get(v.stringValue());
                        Condition c_property = triple.PROPERTY_ID.equal((Field) t_property.ID);
                        j_triple.addCondition(c_property);
                        j_triple.addBackCondition(c_property);
                    } else {
View Full Code Here

                        j_triple.addCondition(create.falseCondition());
                    }
                } else {
                    // performance improvement: if uri already was used, reuse the node instead of doing a new join
                    if(uriNodes.containsKey(v.stringValue())) {
                        t_property = uriNodes.get(v.stringValue());
                        Condition c_property = triple.PROPERTY_ID.equal((Field) t_property.ID);
                        j_triple.addCondition(c_property);
                        j_triple.addBackCondition(c_property);
                    } else {
                        resultTables.add(j_property);
View Full Code Here

                        Condition c_property = triple.PROPERTY_ID.equal((Field) t_property.ID);
                        j_triple.addCondition(c_property);
                        j_triple.addBackCondition(c_property);
                    } else {
                        resultTables.add(j_property);
                        j_property.addCondition(t_property.URI.equal((Field) create.val(v.stringValue())));
                        j_property.addCondition(triple.PROPERTY_ID.equal((Field) t_property.ID));
                        uriNodes.put(v.stringValue(),t_property);
                    }
                }
View Full Code Here

                        j_triple.addBackCondition(c_property);
                    } else {
                        resultTables.add(j_property);
                        j_property.addCondition(t_property.URI.equal((Field) create.val(v.stringValue())));
                        j_property.addCondition(triple.PROPERTY_ID.equal((Field) t_property.ID));
                        uriNodes.put(v.stringValue(),t_property);
                    }
                }


            } else {
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.