本文整理了Java中com.bigdata.rdf.internal.impl.literal.XSDNumericIV.getInlineValue()
方法的一些代码示例,展示了XSDNumericIV.getInlineValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDNumericIV.getInlineValue()
方法的具体详情如下:
包路径:com.bigdata.rdf.internal.impl.literal.XSDNumericIV
类名称:XSDNumericIV
方法名:getInlineValue
暂无
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "DB1234";
final String fixture = "DB";
final int intValue = 1234;
InlinePrefixedIntegerURIHandler handler = new InlinePrefixedIntegerURIHandler(nameSpace, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testSuffixedIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "1234DB";
final String fixture = "DB";
final int intValue = 1234;
InlineSuffixedIntegerURIHandler handler = new InlineSuffixedIntegerURIHandler(nameSpace, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234";
final int intValue = 1234;
final int width = 6;
InlineFixedWidthIntegerURIHandler handler = new InlineFixedWidthIntegerURIHandler(nameSpace, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: com.blazegraph/bigdata-rdf-test
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testSuffixedIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "1234DB";
final String fixture = "DB";
final int intValue = 1234;
InlineSuffixedIntegerURIHandler handler = new InlineSuffixedIntegerURIHandler(nameSpace, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: com.blazegraph/bigdata-rdf-test
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "DB1234";
final String fixture = "DB";
final int intValue = 1234;
InlinePrefixedIntegerURIHandler handler = new InlinePrefixedIntegerURIHandler(nameSpace, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: com.blazegraph/bigdata-rdf-test
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234";
final int intValue = 1234;
final int width = 6;
InlineFixedWidthIntegerURIHandler handler = new InlineFixedWidthIntegerURIHandler(nameSpace, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PREFIX_001234";
final String fixture = "PREFIX_";
final int intValue = 1234;
final int width = 6;
InlinePrefixedFixedWidthIntegerURIHandler handler = new InlinePrefixedFixedWidthIntegerURIHandler(nameSpace, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: com.blazegraph/bigdata-rdf-test
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PREFIX_001234";
final String fixture = "PREFIX_";
final int intValue = 1234;
final int width = 6;
InlinePrefixedFixedWidthIntegerURIHandler handler = new InlinePrefixedFixedWidthIntegerURIHandler(nameSpace, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testSuffixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234_SUFFIX";
final String fixture = "_SUFFIX";
final int intValue = 1234;
final int width = 6;
InlineSuffixedFixedWidthIntegerURIHandler handler = new InlineSuffixedFixedWidthIntegerURIHandler(nameSpace, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedSuffixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PRE_001234_SUFFIX";
final String pre = "PRE_";
final String fixture = "_SUFFIX";
final int intValue = 1234;
final int width = 6;
InlinePrefixedSuffixedFixedWidthIntegerURIHandler handler = new InlinePrefixedSuffixedFixedWidthIntegerURIHandler(nameSpace, pre, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedSuffixIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PRE_1234_SUFFIX";
final String pre = "PRE_";
final String fixture = "_SUFFIX";
final int intValue = 1234;
InlinePrefixedSuffixedIntegerURIHandler handler = new InlinePrefixedSuffixedIntegerURIHandler(nameSpace, pre, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: com.blazegraph/bigdata-rdf-test
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedSuffixIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PRE_1234_SUFFIX";
final String pre = "PRE_";
final String fixture = "_SUFFIX";
final int intValue = 1234;
InlinePrefixedSuffixedIntegerURIHandler handler = new InlinePrefixedSuffixedIntegerURIHandler(nameSpace, pre, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: com.blazegraph/bigdata-rdf-test
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testSuffixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234_SUFFIX";
final String fixture = "_SUFFIX";
final int intValue = 1234;
final int width = 6;
InlineSuffixedFixedWidthIntegerURIHandler handler = new InlineSuffixedFixedWidthIntegerURIHandler(nameSpace, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testSuffixedIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "1234DB";
final String fixture = "DB";
final int intValue = 1234;
InlineSuffixedIntegerURIHandler handler = new InlineSuffixedIntegerURIHandler(nameSpace, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234";
final int intValue = 1234;
final int width = 6;
InlineFixedWidthIntegerURIHandler handler = new InlineFixedWidthIntegerURIHandler(nameSpace, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "DB1234";
final String fixture = "DB";
final int intValue = 1234;
InlinePrefixedIntegerURIHandler handler = new InlinePrefixedIntegerURIHandler(nameSpace, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PREFIX_001234";
final String fixture = "PREFIX_";
final int intValue = 1234;
final int width = 6;
InlinePrefixedFixedWidthIntegerURIHandler handler = new InlinePrefixedFixedWidthIntegerURIHandler(nameSpace, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testFixedWidthIntegerURIHandlerFail() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234";
final int intValue = 1234;
final int width = 7;
InlineFixedWidthIntegerURIHandler handler = new InlineFixedWidthIntegerURIHandler(nameSpace, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (intValue == iv.getInlineValue().intValue());
//These should be equal as the width is 7
assertTrue (!localName.equals(handler.getLocalNameFromDelegate(iv)));
//Should be the 7 digit with padded zeros
assertTrue (String.format("%0"+width+"d",intValue).equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testPrefixedSuffixIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "PRE_1234_SUFFIX";
final String pre = "PRE_";
final String fixture = "_SUFFIX";
final int intValue = 1234;
InlinePrefixedSuffixedIntegerURIHandler handler = new InlinePrefixedSuffixedIntegerURIHandler(nameSpace, pre, fixture);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
代码示例来源:origin: blazegraph/database
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
public void testSuffixFixedWidthIntegerURIHandler() {
final String nameSpace = "http://blazegraph.com/";
final String localName = "001234_SUFFIX";
final String fixture = "_SUFFIX";
final int intValue = 1234;
final int width = 6;
InlineSuffixedFixedWidthIntegerURIHandler handler = new InlineSuffixedFixedWidthIntegerURIHandler(nameSpace, fixture, width);
XSDNumericIV iv = (XSDNumericIV) handler.createInlineIV(localName);
if(log.isDebugEnabled()) {
log.debug(iv.getDTE().name());
}
assertTrue (iv != null);
assertTrue (intValue == iv.getInlineValue().intValue());
assertTrue (localName.equals(handler.getLocalNameFromDelegate(iv)));
}
内容来源于网络,如有侵权,请联系作者删除!