Sunday, 15 August 2010

java - Programatically add custom rule in Stardog -


Add code> testog data db_name -g "http: // graph_name" /path/to/rules/test.ttl

There is a possibility to do this through the Java API, for example For AdminConnection class?

The data must be added to the database by using the connection class that you You can specify a name graph for the file being added:

  conn.begin (); Conn.add () Io (). Reference (graphURI). File (new file ("/ path / per / rule / test."); Conn.commit ();  

See more classes for more details.


No comments:

Post a Comment