3

I wrote an implementation of com.hp.hpl.jena.graph.impl.GraphBase

package mygraph;
import (...)

public class MyGraph extends GraphBase
   {
   public MyGraph()
            {

            }
   @Override
   protected ExtendedIterator<Triple> graphBaseFind( TripleMatch m )
            {
            return //(...)
            }
   }

now, I'd like to load this graph into Apache Fuseki. I've read about the Assembler and the config (*.ttl) files but I'm lost. How should I tell Fuzeki to add/load my graph to its dataset ?

Pierre
  • 34,472
  • 31
  • 113
  • 192

1 Answers1

2

Check out the steps outlined here.

Also, look at the source code for TDB to see how it registers (the com.hp.hpl.jena.tdb.assembler package).

sallen
  • 455
  • 3
  • 9
  • Thanks, it looks useful. How should I proceed with the 2nd step "Register an assembler (AssemblerUtils.registerWith)" with fuseki ? – Pierre Nov 12 '12 at 14:55
  • 1
    You will need to use "[] ja:loadClass "yourclass" in a Fuseki config file to trigger some custom code. See TDB.init and the fuseki example config file. – AndyS Nov 12 '12 at 19:24