You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a lot of researching, I couldn't find a way to go from a triple store to a powsybl Network. I don't want to read a file directly from powsybl. The workflow will be that triple store will be queried from an Apache Jena server and then fed into powsybl for load flow calculations.
Here's what I got:
publicstaticvoidmain(String[] args) {
// Step 1: Create a Jena Dataset and load RDF data// Model model = ModelFactory.createDefaultModel();TripleStoreJenatripleStore = newTripleStoreJena();
// Load RDF data from a file or resourcetry (InputStreaminputStream = Main.class.getResourceAsStream("/SmallGridTestConfiguration_BC_EQ_v3.0.0.xml")) {
if (inputStream == null) {
thrownewIllegalArgumentException("RDF data file not found!");
}
tripleStore.read(inputStream, "","eq.xml");
// RDFDataMgr.read(model, inputStream, Lang.TURTLE);
} catch (Exceptione) {
e.printStackTrace();
}
// How to generate a network from the triple store?// Network cgmesNetwork = Network.read()System.out.println("Done!");
}
I am on version 6.6.1. Can you please guide me?
The text was updated successfully, but these errors were encountered:
Hi!
After a lot of researching, I couldn't find a way to go from a triple store to a powsybl
Network
. I don't want to read a file directly from powsybl. The workflow will be that triple store will be queried from an Apache Jena server and then fed into powsybl for load flow calculations.Here's what I got:
I am on version
6.6.1
. Can you please guide me?The text was updated successfully, but these errors were encountered: