public class InlineNamespaceMultiURIHandler extends InlineURIHandler
http://blazegraph.com/blzg/Data#Position_010072F0000038090100000000D56C9E
http://blazegraph.com/blzg/Data#Position_010072F0000038090100000000D56C9E_TaxCost
Each of these can be supported as a different InlineHexUUIDURIHandler
InlineSuffixedHexUUIDURIHandler
at the namespace
http://www.blazegraph.com/blzg/Data#Position_.
Examples of how to configure Hex-encoded UUID based URIs for inlining using
this handler. You may also do this with integers with prefixes, suffixes,
or a combination.
Each namespace inlined must have a corresponding vocabulary declaration.
InlineNamespaceMultiURIHandler mHandler = new InlineNamespaceMultiURIHandler(
"http://blazegraph.com/Data#Position_");
mHandler.addHandler(new InlineSuffixedHexUUIDURIHandler(
"http://blazegraph.com/Data#Position_", "_TaxCost"));
mHandler.addHandler(new InlineSuffixedHexUUIDURIHandler(
"http://blazegraph.com/Data#Position_", "_UnrealizedGain"));
mHandler.addHandler(new InlineSuffixedHexUUIDURIHandler(
"http://blazegraph.com/Data#Position_", "_WashSale"));
mHandler.addHandler(new InlineHexUUIDURIHandler(
"http://blazegraph.com/Data#Position_"));
this.addHandler(mHandler);
https://jira.blazegraph.com/browse/BLZG-1938
namespaceIV
Constructor and Description |
---|
InlineNamespaceMultiURIHandler(String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(InlineURIHandler handler)
Adds a new for the namespace.
|
protected AbstractLiteralIV |
createInlineIV(String localName)
Find the first handler of those register that successfully creates an
inline value for the given localName.
|
createInlineIV, getLocalNameFromDelegate, getNamespace, init
public InlineNamespaceMultiURIHandler(String namespace)
public void addHandler(InlineURIHandler handler)
handler
- Handler to add.MultiNamespaceException
protected AbstractLiteralIV createInlineIV(String localName)
createInlineIV
in class InlineURIHandler
localName
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.