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 boolean
isQuery
-
Method Summary
Modifier and Type Method Description void
addToCollection(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 CodesGraphCode
getCurrentQuery()
int
getIndexForAsset(MMFG m)
static MMFGCollection
getInstance()
singleton pattern accessstatic MMFGCollection
getInstance(java.lang.String session_id)
MMFG
getMMFGForFile(java.io.File f)
returns the MMFG for a given fileMMFG
getMMFGForId(java.util.UUID id)
java.lang.String
getName()
returns the collection nameGraphCode
getOrGenerateGraphCode(MMFG mmfg)
returns or generates a Graph Code for a given MMFGorg.apache.jena.rdf.model.Model
getRDFModel()
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 queryvoid
init()
initializes the collection and the configurationMMFG
loadFromMMFGFile(java.io.File existingMMFG)
void
query(GraphCode gcQuery)
executes a queryvoid
replaceMMFGInCollection(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()
-