se.kmr.scam.rdf.util
Class LOM

java.lang.Object
  extended byse.kmr.scam.rdf.util.LOM

public class LOM
extends Object

Helper for Learning Object Model (LOM) structures.

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
jand

Field Summary
protected static org.apache.log4j.Category LOG
          Log4j-logger
 
Constructor Summary
LOM()
           
 
Method Summary
static RDFNode getItemLangValue(Resource res, Property prop, String lang)
          Same as getLangValue(...), BUT if not found: the object pointed to by IMSCP.content will be examined similarly.
static RDFNode getItemTypeValue(Resource res, Property prop)
          Same as getTypeValue(...), BUT if not found: the object pointed to by IMSCP.content will be examined similarly.
static RDFNode getLangValue(Resource res, Property prop, String lang)
          Return the LOM-value Literal with given language.
static RDFNode getTypeValue(Resource res, Property prop)
          Return the LOM-type value (RDF.value).
static List listLangValues(Resource res, Property prop, String lang)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Category LOG
Log4j-logger

Constructor Detail

LOM

public LOM()
Method Detail

getLangValue

public static RDFNode getLangValue(Resource res,
                                   Property prop,
                                   String lang)
                            throws RDFException
Return the LOM-value Literal with given language. res --prop-- ?? --??-- value(:lang)

Parameters:
res - Resource
prop - Property
lang - Language - can be null (will return first value)
Returns:
LOM-value or null if none.
Throws:
RDFException

listLangValues

public static List listLangValues(Resource res,
                                  Property prop,
                                  String lang)
                           throws RDFException
Throws:
RDFException

getItemLangValue

public static RDFNode getItemLangValue(Resource res,
                                       Property prop,
                                       String lang)
                                throws RDFException
Same as getLangValue(...), BUT if not found: the object pointed to by IMSCP.content will be examined similarly.

Parameters:
res - Resource
prop - Property
lang - Language - can be null (will return first value)
Returns:
LOM-value or null if none.
Throws:
RDFException
See Also:
getLangValue(Resource, Property, String)

getTypeValue

public static RDFNode getTypeValue(Resource res,
                                   Property prop)
                            throws RDFException
Return the LOM-type value (RDF.value).

Parameters:
res - Resource
prop - Property
Returns:
LOM-value or null if none.
Throws:
RDFException

getItemTypeValue

public static RDFNode getItemTypeValue(Resource res,
                                       Property prop)
                                throws RDFException
Same as getTypeValue(...), BUT if not found: the object pointed to by IMSCP.content will be examined similarly.

Parameters:
res - Resource
prop - Property
Returns:
LOM-value or null if none.
Throws:
RDFException
See Also:
getTypeValue(Resource, Property)

main

public static void main(String[] args)


Copyright © 2003 SCAM. All Rights Reserved.