public final class StatementHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<org.openrdf.model.Statement> |
basicEntity(WikibaseUris uris,
String id)
Construct statements about a basic entity.
|
static org.openrdf.model.impl.LiteralImpl |
randomDate()
Construct a random date literal.
|
static List<org.openrdf.model.Statement> |
randomStatementsAbout(String s,
int count)
Construct a bunch of random statements about the given subject.
|
static com.google.common.collect.ImmutableList<org.openrdf.model.Statement> |
siteLink(String entityId,
String link,
String language)
Build the statements describing a sitelink.
|
static com.google.common.collect.ImmutableList<org.openrdf.model.Statement> |
siteLink(String entityId,
String link,
String language,
boolean outOfOrder)
Build the statements describing a sitelink.
|
static org.openrdf.model.Statement |
statement(List<org.openrdf.model.Statement> statements,
String s,
String p,
Object o)
Statement build helper.
|
static org.openrdf.model.Statement |
statement(String s,
String p,
Object o)
Statement build helper.
|
static org.openrdf.model.URI |
uri(String r)
Convert a string into a URI for testing.
|
public static org.openrdf.model.Statement statement(String s, String p, Object o)
public static org.openrdf.model.Statement statement(List<org.openrdf.model.Statement> statements, String s, String p, Object o)
public static com.google.common.collect.ImmutableList<org.openrdf.model.Statement> siteLink(String entityId, String link, String language)
entityId - entity being linkedlink - address of the linklanguage - language the link is inpublic static com.google.common.collect.ImmutableList<org.openrdf.model.Statement> siteLink(String entityId, String link, String language, boolean outOfOrder)
entityId - entity being linkedlink - address of the linklanguage - language the link is inoutOfOrder - should the link be out of order compared to how
wikidata dumps it?public static org.openrdf.model.URI uri(String r)
public static List<org.openrdf.model.Statement> basicEntity(WikibaseUris uris, String id)
public static org.openrdf.model.impl.LiteralImpl randomDate()
Copyright © 2017. All rights reserved.