Package org.openrdf.model.impl

Examples of org.openrdf.model.impl.ValueFactoryImpl


    /**
     * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to
     * create RDF model objects.
     */
    protected FeedParserBase() {
        this(new ValueFactoryImpl());
    }
View Full Code Here


    /**
     * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to
     * create RDF model objects.
     */
    public AtomParser() {
        this(new ValueFactoryImpl());
    }
View Full Code Here

    /**
     * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to
     * create RDF model objects.
     */
    public RSSParser() {
        this(new ValueFactoryImpl());
    }
View Full Code Here

            parseParams(requestUrl);
            final Context context = Context.fromUrl(requestUrl);
            final Document doc = new SAXBuilder(XMLReaders.NONVALIDATING).build(in);

            ArrayList<String> followUp = new ArrayList<String>();
            final ValueFactory valueFactory = new ValueFactoryImpl();

            switch (context) {
                case SITE:
                    followUp.addAll(parseSiteMeta(resource, requestUrl, doc, model));
                    break;
                case META:
                case META_CONTINUED:
                    // For Articles: Retrieve article info (sioc:WikiArticle)
                    // Follow-Up: resolve titles: links, categories
                    // For Categories: Retrieve as skos:Concept/sioc:Category
                    followUp.addAll(parseArticleMeta(resource, requestUrl, doc, context, model));
                    break;
                case CONTENT:
                    followUp.addAll(parseRevision(valueFactory.createURI(resource), requestUrl, model, valueFactory, queryElement(doc, "/api/query/pages/page[1]/revisions"),
                            context));
                    break;
                /* Links from an Article */
                case REDIRECT:
                case LINKS:
View Full Code Here

        System.out.println("For more information, please see:\n"
                + "  <URL:http://wiki.github.com/joshsh/twitlogic/configuring-and-running-twitlogic>.");
    }

    private void runDemo(final TypedProperties config) throws Exception {
        final DatasetFactory datasetFactory = new DatasetFactory(new ValueFactoryImpl());
        for (RDFContentLanguage l : RDFContentLanguage.values()) {
            datasetFactory.addLanguage(l);
        }

        TypedProperties p = TwitLogic.getConfiguration();
View Full Code Here

        System.out.println("For more information, please see:\n"
                + "  <URL:http://wiki.github.com/joshsh/twitlogic/configuring-and-running-twitlogic>.");
    }

    private void runDemo(final Properties config) throws Exception {
        final DatasetFactory datasetFactory = new DatasetFactory(new ValueFactoryImpl());
        for (RDFContentLanguage l : RDFContentLanguage.values()) {
            datasetFactory.addLanguage(l);
        }

        RDFAgentsPlatform p = new RDFAgentsPlatformImpl("twitlogic.fortytwo.net", 8889, config);
View Full Code Here

    this.quadStoreConnection = connection;
    this.repository = repository;
    this.useLazyAdd = repository.useLazyAdd;
    this.prefetchSize = repository.prefetchSize;
    this.BATCH_SIZE = repository.batchSize;
    this.nilContext = new ValueFactoryImpl().createURI(repository.defGraph);
    this.repository.initialize();

    try {
      virtuoso.jdbc4.Driver drv = new virtuoso.jdbc4.Driver();
      if (drv.getMajorVersion()>=3 && drv.getMinorVersion()>=72)
View Full Code Here

    this.repository = repository;
    this.useLazyAdd = repository.useLazyAdd;
    this.prefetchSize = repository.prefetchSize;
    URIFactory uf = repository.getURIFactory();
    LiteralFactory lf = repository.getLiteralFactory();
    this.vf = new ValueFactoryImpl(uf, lf);
    this.nilContext = getValueFactory().createURI(repository.defGraph);
    this.repository.initialize();

  }
View Full Code Here

   *
   * @return A repository-specific ValueFactory.
   */
  @Deprecated
  public ValueFactory getValueFactory() {
    return new ValueFactoryImpl(bf, uf, lf);
  }
View Full Code Here

    }

    public VirtuosoRepository (String graphName, String url, String user, String password)
    {
  this._id = url + ":" + graphName;
  this._valueFactory = new ValueFactoryImpl();
  this.graphName = graphName;
  this.url = url;
  this.user = user;
  this.password = password;
View Full Code Here

TOP

Related Classes of org.openrdf.model.impl.ValueFactoryImpl

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.