public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatToWidth(int width,
String padding,
String str,
String separator)
Deprecated.
|
static org.eclipse.rdf4j.model.Resource |
getContext(org.eclipse.rdf4j.repository.Repository repository,
String ctxID)
Get context IRI from string representation
|
static org.eclipse.rdf4j.model.Resource[] |
getContexts(String[] tokens,
int pos,
org.eclipse.rdf4j.repository.Repository repository)
Get context IRIs from a series of tokens, starting from (zero-based) position within the series.
|
static Path |
getPath(String file)
Get path from file or URI
|
static String |
getPrefixedValue(org.eclipse.rdf4j.model.Value value,
Map<String,String> namespaces)
Get string representation for a value.
|
public static org.eclipse.rdf4j.model.Resource getContext(org.eclipse.rdf4j.repository.Repository repository, String ctxID)
repository - repositoryctxID - context as stringpublic static org.eclipse.rdf4j.model.Resource[] getContexts(String[] tokens, int pos, org.eclipse.rdf4j.repository.Repository repository) throws IllegalArgumentException
tokens - command as series of tokenspos - position to start fromrepository - repositoryIllegalArgumentExceptionpublic static Path getPath(String file)
file - file namepublic static String getPrefixedValue(org.eclipse.rdf4j.model.Value value, Map<String,String> namespaces)
value - valuenamespaces - mapping (uri,prefix)@Deprecated public static String formatToWidth(int width, String padding, String str, String separator)
width - maximum column widthpadding - left paddingstr - joined stringseparator - value separatorCopyright © 2015-2019 Eclipse Foundation. All Rights Reserved.