@JavaName getRelatedValue2
relatedValue2 :: Resource -> Resource -> <ReadGraph> a
+ @JavaName getPossibleRelatedValue2
+ possibleRelatedValue2 :: Resource -> Resource -> <ReadGraph> Maybe a
+
@JavaName getRelatedVariantValue2
relatedVariantValue2 :: Resource -> Resource -> <ReadGraph> Variant
@JavaName getInverse
inverseOf :: Resource -> <ReadGraph> Resource
+ @JavaName getPossibleInverse
+ possibleInverseOf :: Resource -> <ReadGraph> Maybe Resource
@JavaName getSingleType
singleTypeOf :: Resource -> Resource -> <ReadGraph> Resource
@JavaName getPredicates
predicatesOf :: Resource -> <ReadGraph> [Resource]
+
+ isImmutable :: Resource -> <ReadGraph> Boolean
importJava "org.simantics.db.layer0.util.ExtendedUris" where
"Converts an absolute URI to a resource"
valueOf :: Serializable v => a -> <ReadGraph> v
+ genericRelatedValue :: a -> Resource -> <ReadGraph> t
+ genericPossibleRelatedValue :: a -> Resource -> <ReadGraph> Maybe t
+
variantValueOf :: a -> <ReadGraph> Variant
children :: a -> <ReadGraph> [a]
valueOf r = valueOf_ r binding
variantValueOf = variantValueOf_
+ genericRelatedValue = relatedValue2
+ genericPossibleRelatedValue = possibleRelatedValue2
+
children r = r # L0.ConsistsOf
parent r = singleObject r L0.PartOf
possibleParent r = possibleObject r L0.PartOf
newResource :: () -> <WriteGraph> Resource
"Adds a statement to the semantic graph."
claim :: Resource -> Resource -> Resource -> <WriteGraph> ()
+ @JavaName claim
+ claimWithInverse :: Resource -> Resource -> Maybe Resource -> Resource -> <WriteGraph> ()
@JavaName claimLiteral
claimRelatedValue_ :: Resource -> Resource -> a -> Binding a -> <WriteGraph> ()
@JavaName claimLiteral
"Begins a write transaction and immediately returns."
asyncWrite :: (() -> <Proc,ReadGraph,WriteGraph> a) -> <Proc> ()
- virtualSyncWriteMem :: String -> (() -> <ReadGraph,WriteGraph> a) -> <WriteGraph> a
- virtualSyncWriteWS :: String -> (() -> <ReadGraph,WriteGraph> a) -> <WriteGraph> a
+ virtualSyncWriteMem :: String -> (() -> <e,WriteGraph> a) -> <e,WriteGraph> a
+ virtualSyncWriteWS :: String -> (() -> <e,WriteGraph> a) -> <e,WriteGraph> a
safeExec :: (() -> <Proc> a) -> <Proc> a
activateOnce :: Resource -> <Proc> ()
subquery :: (<ReadGraph,Proc> a) -> <ReadGraph,Proc> a
"Makes a new read request with given procedure for calculating the result. The request is always cached."
subqueryC :: (<ReadGraph,Proc> a) -> <ReadGraph,Proc> a
+ "Makes a new read asynchronous request with function to handle the request result. The last `isDisposed` function parameter is used to determine if the listener is still alive or not."
+ subqueryL :: (<ReadGraph,Proc> a) -> (a -> <ReadGraph, e> ()) -> (Throwable -> <ReadGraph, e> ()) -> (<e> Boolean) -> <ReadGraph, Proc, e> ()
"Tries to convert the given Dynamic value to a value with the inferred type"
possibleFromDynamic :: Typeable a => String -> Dynamic -> Maybe a
possiblePredicateByName :: Resource -> String -> <ReadGraph> Maybe Resource
@JavaName getPossiblePredicateByNameFromType
possiblePredicateByNameFromType :: Resource -> String -> <ReadGraph> Maybe Resource
+
+ addMetadataListener :: ChangeListener -> <Proc> ()
+ removeMetadataListener :: ChangeListener -> <Proc> ()
copyTo :: Resource -> Resource -> <WriteGraph> Resource
copyTo targetContainer source = do
Just c -> possibleChild c name
Nothing -> Nothing
)
- (Just parent) path
\ No newline at end of file
+ (Just parent) path
+
+importJava "org.simantics.db.MetadataI" where
+ data MetadataI
+
+importJava "org.simantics.db.event.ChangeListener" where
+ data ChangeListener
+
+importJava "org.simantics.db.layer0.genericrelation.DependencyChanges" where
+ data DependencyChanges