|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.spreadsheets.util.SpreadsheetUtil
public class SpreadsheetUtil
| Field Summary | |
|---|---|
static java.lang.String |
HASH
|
| Fields inherited from interface org.topbraid.spreadsheets.IMapConstants |
|---|
CELL, CLASSSEPARATOR, COLUMN, COMMA, EMPTY, NULLRESOURCE, OBJECT, PREDICATE, QUOTE, RESOURCE, ROW, SUBJECT |
| Constructor Summary | |
|---|---|
SpreadsheetUtil()
|
|
| Method Summary | |
|---|---|
static void |
addProperty(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property property,
java.lang.String lexicalValue)
|
static void |
addProperty(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property property,
java.lang.String lexicalValue,
com.hp.hpl.jena.datatypes.RDFDatatype rdfDatatype)
|
static java.lang.String[] |
getClassNames(Spreadsheet spreadsheet,
com.hp.hpl.jena.rdf.model.Resource config)
|
static java.lang.String[] |
getCommasplitItems(java.lang.String source,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreListSpecialCheck)
|
static java.io.File |
getExistingFile(java.lang.String fileName)
|
static java.lang.Object |
getExistingFileSource(java.lang.String fileName)
|
static org.eclipse.core.resources.IFile |
getExistingResource(java.lang.String fileName)
|
static java.net.URL |
getExistingURL(java.lang.String fileName)
|
static java.lang.String |
getImportMessage(com.hp.hpl.jena.rdf.model.Resource config)
|
static java.lang.String |
getInverse(java.lang.Object input)
Get the inverse of COLUMN / ROW |
static java.lang.Object |
getInverse(java.lang.Object input,
java.lang.Object first,
java.lang.Object second)
Get the inverse identifier. |
static java.lang.String |
getItem(java.lang.String source,
com.hp.hpl.jena.rdf.model.Resource config)
|
static void |
getItem(java.lang.String source,
java.lang.StringBuffer result,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config)
|
static void |
getItem(java.lang.String source,
java.lang.StringBuffer result,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
|
static java.lang.String |
getItem(java.lang.String source,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config)
|
static java.lang.String |
getItem(java.lang.String source,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
|
static java.lang.String[] |
getItems(java.lang.String source,
java.lang.String splitter,
java.lang.String surrounder,
com.hp.hpl.jena.rdf.model.Resource config)
|
static java.lang.String[] |
getItems(java.lang.String source,
java.lang.String splitter,
java.lang.String surrounder,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
|
static java.lang.String[] |
getItems(java.lang.String source,
java.lang.String localName,
java.lang.String splitter,
java.lang.String surrounder,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
|
static java.util.List<java.lang.String> |
getOrderedPropertyColumns(java.lang.String[] colNames,
com.hp.hpl.jena.rdf.model.Resource config)
|
static java.util.List<java.lang.String> |
getOrderedPropertyColumns(java.lang.String[] colNames,
java.lang.String idPattern)
|
static com.hp.hpl.jena.rdf.model.Resource |
getPropertyDetails(java.lang.String colName,
com.hp.hpl.jena.rdf.model.Resource config)
|
static com.hp.hpl.jena.rdf.model.Resource |
getResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel)
|
static com.hp.hpl.jena.rdf.model.Resource |
getResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel,
com.hp.hpl.jena.rdf.model.Resource config)
Gets a resource already existing in the model. |
static org.eclipse.core.resources.IFile |
getResource(java.lang.String fileLocation)
|
static com.hp.hpl.jena.rdf.model.Resource |
getResourceByName(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String qName)
Deprecated. - will be moved to Labels.java |
static java.lang.String |
getSchema(java.lang.String uri)
|
static java.util.Set |
getSetElement(java.util.Map map,
java.lang.Object key)
|
static Spreadsheet |
getSpreadsheetFromSource(java.lang.Object fileSource)
|
static Spreadsheet |
getSpreedsheetFromURL(java.lang.String url)
|
static void |
getTypesOfLabel(java.util.List<java.lang.Object> classes,
java.lang.String rowHead,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource config)
|
static java.lang.String |
getUnsurroundedString(java.lang.String sourceStr,
java.lang.String surroundStr)
|
static java.lang.String |
getURIFlex(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String qName)
Deprecated. - will be moved to Labels.java |
static void |
guessClass(Spreadsheet spreadsheet,
com.hp.hpl.jena.rdf.model.Model model,
int maxAllowed,
java.lang.String[] classNames,
java.util.List<java.util.List> returnList,
com.hp.hpl.jena.rdf.model.Resource config,
int position,
java.lang.String location)
|
static java.util.List[] |
guessClass(Spreadsheet spreadsheet,
com.hp.hpl.jena.rdf.model.Resource config,
com.hp.hpl.jena.rdf.model.Model model,
int maxAllowed)
|
static java.util.List |
guessClass(Spreadsheet ss,
java.lang.String position,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource config,
int maxAllowed)
|
static boolean |
isColumnNameChecked(java.lang.String colName,
com.hp.hpl.jena.rdf.model.Resource config)
|
static boolean |
isSpreadsheetEmpty(Spreadsheet spreadsheet)
|
static boolean |
isSurroundedWith(java.lang.String sourceStr,
java.lang.String surroundStr)
|
static java.lang.Object |
mapObject(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel,
com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Resource predicate,
com.hp.hpl.jena.rdf.model.Resource config)
|
static com.hp.hpl.jena.rdf.model.Resource |
mapResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel)
|
static com.hp.hpl.jena.rdf.model.Resource |
mapResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel,
com.hp.hpl.jena.rdf.model.Resource config)
Maps the rawLabel to a resource in model. |
static java.lang.String |
parseLiteral(java.lang.String source)
|
static boolean |
putSetElement(java.util.Map<java.lang.Object,java.util.Set> map,
java.lang.Object key,
java.lang.Object value)
|
static java.lang.String |
unionURIs(java.lang.String uri1,
java.lang.String uri2)
Generates a URI with a union of the general and local parts of the URI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HASH
| Constructor Detail |
|---|
public SpreadsheetUtil()
| Method Detail |
|---|
public static java.lang.String[] getClassNames(Spreadsheet spreadsheet,
com.hp.hpl.jena.rdf.model.Resource config)
throws java.io.IOException
java.io.IOException
public static java.lang.String[] getCommasplitItems(java.lang.String source,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreListSpecialCheck)
public static java.io.File getExistingFile(java.lang.String fileName)
public static java.lang.Object getExistingFileSource(java.lang.String fileName)
public static org.eclipse.core.resources.IFile getExistingResource(java.lang.String fileName)
public static java.net.URL getExistingURL(java.lang.String fileName)
public static java.lang.String getImportMessage(com.hp.hpl.jena.rdf.model.Resource config)
public static java.lang.String getInverse(java.lang.Object input)
input -
public static java.lang.Object getInverse(java.lang.Object input,
java.lang.Object first,
java.lang.Object second)
input - first - second -
public static java.lang.String getItem(java.lang.String source,
com.hp.hpl.jena.rdf.model.Resource config)
public static java.lang.String getItem(java.lang.String source,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config)
public static java.lang.String getItem(java.lang.String source,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
public static void getItem(java.lang.String source,
java.lang.StringBuffer result,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config)
public static void getItem(java.lang.String source,
java.lang.StringBuffer result,
java.lang.String localName,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
public static java.lang.String[] getItems(java.lang.String source,
java.lang.String splitter,
java.lang.String surrounder,
com.hp.hpl.jena.rdf.model.Resource config)
public static java.lang.String[] getItems(java.lang.String source,
java.lang.String splitter,
java.lang.String surrounder,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
public static java.lang.String[] getItems(java.lang.String source,
java.lang.String localName,
java.lang.String splitter,
java.lang.String surrounder,
com.hp.hpl.jena.rdf.model.Resource config,
java.util.Set ignoreSpecialCheck)
public static java.util.List<java.lang.String> getOrderedPropertyColumns(java.lang.String[] colNames,
com.hp.hpl.jena.rdf.model.Resource config)
public static java.util.List<java.lang.String> getOrderedPropertyColumns(java.lang.String[] colNames,
java.lang.String idPattern)
public static com.hp.hpl.jena.rdf.model.Resource getPropertyDetails(java.lang.String colName,
com.hp.hpl.jena.rdf.model.Resource config)
public static com.hp.hpl.jena.rdf.model.Resource getResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel)
throws java.lang.Exception
java.lang.Exception
public static com.hp.hpl.jena.rdf.model.Resource getResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel,
com.hp.hpl.jena.rdf.model.Resource config)
throws java.lang.Exception
model - rawLabel - options -
java.lang.Exceptionpublic static org.eclipse.core.resources.IFile getResource(java.lang.String fileLocation)
public static com.hp.hpl.jena.rdf.model.Resource getResourceByName(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String qName)
model - qName -
public static java.lang.String getSchema(java.lang.String uri)
public static java.util.Set getSetElement(java.util.Map map,
java.lang.Object key)
public static Spreadsheet getSpreedsheetFromURL(java.lang.String url)
public static Spreadsheet getSpreadsheetFromSource(java.lang.Object fileSource)
public static void getTypesOfLabel(java.util.List<java.lang.Object> classes,
java.lang.String rowHead,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource config)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String getUnsurroundedString(java.lang.String sourceStr,
java.lang.String surroundStr)
public static java.lang.String getURIFlex(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String qName)
model - qName -
public static void guessClass(Spreadsheet spreadsheet,
com.hp.hpl.jena.rdf.model.Model model,
int maxAllowed,
java.lang.String[] classNames,
java.util.List<java.util.List> returnList,
com.hp.hpl.jena.rdf.model.Resource config,
int position,
java.lang.String location)
throws java.lang.Exception,
java.io.IOException
java.lang.Exception
java.io.IOException
public static java.util.List[] guessClass(Spreadsheet spreadsheet,
com.hp.hpl.jena.rdf.model.Resource config,
com.hp.hpl.jena.rdf.model.Model model,
int maxAllowed)
public static java.util.List guessClass(Spreadsheet ss,
java.lang.String position,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource config,
int maxAllowed)
throws java.lang.Exception
java.lang.Exception
public static boolean isColumnNameChecked(java.lang.String colName,
com.hp.hpl.jena.rdf.model.Resource config)
public static boolean isSpreadsheetEmpty(Spreadsheet spreadsheet)
throws java.lang.Exception
java.lang.Exception
public static boolean isSurroundedWith(java.lang.String sourceStr,
java.lang.String surroundStr)
public static java.lang.Object mapObject(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel,
com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Resource predicate,
com.hp.hpl.jena.rdf.model.Resource config)
throws java.lang.Exception
java.lang.Exception
public static com.hp.hpl.jena.rdf.model.Resource mapResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel)
throws java.lang.Exception
java.lang.Exception
public static com.hp.hpl.jena.rdf.model.Resource mapResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String rawLabel,
com.hp.hpl.jena.rdf.model.Resource config)
throws java.lang.Exception
model - rawLabel - options -
java.lang.Exceptionpublic static java.lang.String parseLiteral(java.lang.String source)
public static boolean putSetElement(java.util.Map<java.lang.Object,java.util.Set> map,
java.lang.Object key,
java.lang.Object value)
public static java.lang.String unionURIs(java.lang.String uri1,
java.lang.String uri2)
uri1 - uri2 -
public static void addProperty(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property property,
java.lang.String lexicalValue,
com.hp.hpl.jena.datatypes.RDFDatatype rdfDatatype)
public static void addProperty(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property property,
java.lang.String lexicalValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||