Package de.swa.ui
Class MMFGCollection
java.lang.Object
de.swa.ui.MMFGCollection
public class MMFGCollection
extends java.lang.Object
data structure representing the collection of all MMFGs
-
Field Summary
Fields Modifier and Type Field Description static booleanisQuery -
Method Summary
Modifier and Type Method Description voidaddToCollection(MMFG m)adds a MMFG to the collectionjava.util.Vector<MMFG>getCollection()returns the collection of MMFGsjava.util.Vector<GraphCode>getCollectionGraphCodes()returns a vector of all collection's Graph CodesGraphCodegetCurrentQuery()intgetIndexForAsset(MMFG m)static MMFGCollectiongetInstance()singleton pattern accessstatic MMFGCollectiongetInstance(java.lang.String session_id)MMFGgetMMFGForFile(java.io.File f)returns the MMFG for a given fileMMFGgetMMFGForId(java.util.UUID id)java.lang.StringgetName()returns the collection nameGraphCodegetOrGenerateGraphCode(MMFG mmfg)returns or generates a Graph Code for a given MMFGorg.apache.jena.rdf.model.ModelgetRDFModel()java.util.Vector<MMFG>getRecommendedAssets(GraphCode gcQuery)returns recommended assets based on a Graph Code queryjava.util.Vector<MMFG>getSimilarAssets(GraphCode gcQuery)returns similar assets based on a Graph Code queryvoidinit()initializes the collection and the configurationMMFGloadFromMMFGFile(java.io.File existingMMFG)voidquery(GraphCode gcQuery)executes a queryvoidreplaceMMFGInCollection(MMFG m, java.io.File f)replaces an element of the collection
-
Field Details
-
isQuery
public static boolean isQuery
-
-
Method Details
-
getInstance
singleton pattern access -
getInstance
-
init
public void init()initializes the collection and the configuration -
loadFromMMFGFile
-
addToCollection
adds a MMFG to the collection -
getCollection
returns the collection of MMFGs -
replaceMMFGInCollection
replaces an element of the collection -
getName
public java.lang.String getName()returns the collection name -
getMMFGForFile
returns the MMFG for a given file -
getMMFGForId
-
getCurrentQuery
-
getCollectionGraphCodes
returns a vector of all collection's Graph Codes -
getOrGenerateGraphCode
returns or generates a Graph Code for a given MMFG -
getSimilarAssets
returns similar assets based on a Graph Code query -
getIndexForAsset
-
getRecommendedAssets
returns recommended assets based on a Graph Code query -
query
executes a query -
getRDFModel
public org.apache.jena.rdf.model.Model getRDFModel()
-