jena

Using JENA to query a SPARQL Endpoint or a file

Submitted by admin on Tue, 08/11/2015 - 14:06

<strong>Endpoint</strong>
<code>
package test_java;

import com.hp.hpl.jena.query.Query;
import com.hp.hpl.jena.query.QueryExecution;
import com.hp.hpl.jena.query.QueryExecutionFactory;
import com.hp.hpl.jena.query.QueryFactory;
import com.hp.hpl.jena.query.ResultSet;
import com.hp.hpl.jena.query.ResultSetFormatter;
import com.hp.hpl.jena.query.Syntax;
import com.hp.hpl.jena.shared.PrefixMapping;

Etiquetas

Intersection two graphs using Jena

Submitted by admin on Tue, 10/14/2014 - 22:39

<code>
package fr.student.team.example;

import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.Statement;
import com.hp.hpl.jena.rdf.model.StmtIterator;
import com.hp.hpl.jena.util.FileManager;

public class Operations {

Etiquetas