java

Using JENA to query a SPARQL Endpoint or a file

<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

Updated version of JGraphAdapterDemo (JGraph + JGraphT)

Here an updated version (2015) of demo published in <a href="http://jgrapht.org/visualizations.html">http://jgrapht.org/visualizatio…;

<code>
package org.jgrapht.demo;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JApplet;
import javax.swing.JFrame;

Etiquetas