Examples of RippleProperties


Examples of net.fortytwo.ripple.RippleProperties

            throws RippleException {
        this.printStream = printStream;
        this.modelConnection = modelConnection;
        this.helper = new ModelConnectionHelper(modelConnection);

        RippleProperties props = Ripple.getConfiguration();
        this.printEntireStack = props.getBoolean(
                Ripple.RESULT_VIEW_PRINT_ENTIRE_STACK);
        this.showEdges = props.getBoolean(
                Ripple.RESULT_VIEW_SHOW_EDGES);
        //&& modelConnection.getModel() instanceof SesameModel;
        this.maxPredicates = props.getInt(
                Ripple.RESULT_VIEW_MAX_PREDICATES);
        this.maxObjects = props.getInt(
                Ripple.RESULT_VIEW_MAX_OBJECTS);
        this.deduplicateObjects = props.getBoolean(
                Ripple.RESULT_VIEW_DEDUPLICATE_OBJECTS);
    }
View Full Code Here

Examples of net.fortytwo.ripple.RippleProperties

    }

    public SailConfiguration(final URIMap uriMap) throws RippleException {
        loader = ServiceLoader.load(SailFactory.class);

        RippleProperties props = Ripple.getConfiguration();
        sailType = props.getString(Ripple.SAIL_TYPE).trim();
        sail = createSail(sailType, uriMap);
    }
View Full Code Here

Examples of net.fortytwo.ripple.RippleProperties

        return NativeStore.class;
    }

    @Override
    public Sail createSail(URIMap uriMap, SailConfiguration config) throws RippleException {
        RippleProperties props = Ripple.getConfiguration();
        File dir = props.getFile(Ripple.NATIVESTORE_DIRECTORY);
        String indexes = props.getString(Ripple.NATIVESTORE_INDEXES, null);

        Sail sail = (null == indexes)
                ? new NativeStore(dir)
                : new NativeStore(dir, indexes.trim());
        try {
View Full Code Here

Examples of net.fortytwo.ripple.RippleProperties

    }

    public Sail createSail(URIMap uriMap, SailConfiguration config) throws RippleException {
        MemoryStore sail = new MemoryStore();

        RippleProperties props = Ripple.getConfiguration();
        File persistFile = props.getFile(Ripple.MEMORYSTORE_PERSIST_FILE, null);

        // If a persist file has been specified, attempt to load from it.  A
        // missing persist file is tolerated.
        if (null != persistFile) {
            sail.setDataDir(persistFile);
View Full Code Here

Examples of net.fortytwo.ripple.RippleProperties

        return LinkedDataSail.class;
    }

    public Sail createSail(final URIMap uriMap,
                           final SailConfiguration config) throws RippleException {
        RippleProperties props = Ripple.getConfiguration();
        String baseSailType = props.getString(Ripple.LINKEDDATASAIL_BASE_SAIL);

        Sail base = config.createSail(baseSailType, uriMap);
        LinkedDataCache cache = LinkedDataCache.createDefault(base);
        cache.setURIMap(uriMap);
        Sail sail = new LinkedDataSail(base, cache);
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.