use of com.inova8.intelligentgraph.model.Resource in project com.inova8.intelligentgraph by peterjohnlawrence.
the class Local_BoundFact_Tests method test_18.
/**
* Test 18.
*/
@Test
@Order(18)
void test_18() {
try {
Resource result = source.getFact("[eq <http://inova8.com/calc2graph/id/Calc2Graph1>]/^:Location@:appearsOn[eq id:BatteryLimit1]#/:lat");
assertEquals("400", result.stringValue());
} catch (Exception e) {
assertEquals("", e.getMessage());
e.printStackTrace();
}
}
use of com.inova8.intelligentgraph.model.Resource in project com.inova8.intelligentgraph by peterjohnlawrence.
the class Local_BoundFact_Tests method test_22.
/**
* Test 22.
*/
@Test
@Order(22)
void test_22() {
try {
Resource result = source.getFact("[eq <http://inova8.com/calc2graph/id/BatteryLimit1>]/:Location@:appearsOn#[:location.Map id:Calc2Graph2 ]/:long");
assertEquals("502", result.stringValue());
} catch (Exception e) {
assertEquals("", e.getMessage());
e.printStackTrace();
}
}
use of com.inova8.intelligentgraph.model.Resource in project com.inova8.intelligentgraph by peterjohnlawrence.
the class Local_BoundFact_Tests method test_20.
/**
* Test 20.
*/
@Test
@Order(20)
void test_20() {
try {
Resource result = source.getFact("[eq <http://inova8.com/calc2graph/id/BatteryLimit1>]/:Location@:appearsOn[eq [ rdfs:label 'Calc2Graph2']]#/:lat");
assertEquals("400", result.stringValue());
} catch (Exception e) {
assertEquals("", e.getMessage());
e.printStackTrace();
}
}
use of com.inova8.intelligentgraph.model.Resource in project com.inova8.intelligentgraph by peterjohnlawrence.
the class Local_GetFact_Tests method test_15.
/**
* Test 15.
*/
@Test
@Order(15)
void test_15() {
try {
Thing _this = source.getThing(iri("http://inova8.com/calc2graph/id/BatteryLimit1"), null);
Resource result = _this.getFact("<http://inova8.com/calc2graph/def/long>");
assertEquals("501", result.stringValue());
} catch (Exception e) {
assertEquals("", e.getMessage());
e.printStackTrace();
}
}
use of com.inova8.intelligentgraph.model.Resource in project com.inova8.intelligentgraph by peterjohnlawrence.
the class Local_GetFact_Tests method test_7.
/**
* Test 7.
*/
@Test
@Order(7)
void test_7() {
try {
Thing _this = source.getThing(iri("http://inova8.com/calc2graph/id/Unit1"), null);
Resource result = _this.getFact("<http://inova8.com/calc2graph/def/massThroughput>");
assertEquals("37.99999952316284", result.stringValue());
} catch (Exception e) {
assertEquals("", e.getMessage());
e.printStackTrace();
}
}
Aggregations