From 3b7532c07fda3df5b54f8c32372507b0b8728aad Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Fri, 2 Jun 2017 13:17:52 +0300 Subject: [PATCH] Improved Statement API in Simantics/DB refs #7270 Change-Id: I3780a424247bea8eaeeaa204595625844f3b0883 --- bundles/org.simantics.scl.db/scl/Simantics/DB.scl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundles/org.simantics.scl.db/scl/Simantics/DB.scl b/bundles/org.simantics.scl.db/scl/Simantics/DB.scl index 54696a83d..b725d6c74 100644 --- a/bundles/org.simantics.scl.db/scl/Simantics/DB.scl +++ b/bundles/org.simantics.scl.db/scl/Simantics/DB.scl @@ -43,6 +43,8 @@ importJava "org.simantics.db.Statement" where @JavaName getObject objectOf :: Statement -> Resource + isAsserted :: Statement -> Resource -> Boolean + importJava "org.simantics.db.ReadGraph" where "Converts an absolute URI to a resource or returns `Nothing` if there is no such resource." @JavaName getPossibleResource @@ -85,6 +87,9 @@ importJava "org.simantics.db.ReadGraph" where @JavaName getSingleStatement singleStatement :: Resource -> Resource -> Statement + @JavaName getPossibleStatement + possibleStatement :: Resource -> Resource -> Maybe Statement + @JavaName getRelatedVariantValue relatedVariantValue :: Resource -> Resource -> Variant -- 2.43.2