use of org.openrdf.model.impl.LiteralImpl in project wikidata-query-rdf by wikimedia.
the class WikibaseVocabularyUnitTest method truthyPAndQAreBytes.
@Test
public void truthyPAndQAreBytes() {
BigdataStatement statement = roundTrip(uris().entityIdToURI("Q"), uris().property(PropertyType.DIRECT) + "P", new LiteralImpl("cat"));
assertThat(statement.getSubject().getIV(), instanceOf(VocabURIByteIV.class));
assertThat(statement.getPredicate().getIV(), instanceOf(VocabURIByteIV.class));
}
use of org.openrdf.model.impl.LiteralImpl in project wikidata-query-rdf by wikimedia.
the class WikibaseVocabularyUnitTest method altLabelIsByte.
@Test
public void altLabelIsByte() {
BigdataStatement statement = roundTrip("entity:Q23", SKOS.ALT_LABEL, new LiteralImpl("G", "en"));
assertThat(statement.getPredicate().getIV(), instanceOf(VocabURIByteIV.class));
}
use of org.openrdf.model.impl.LiteralImpl in project wikidata-query-rdf by wikimedia.
the class WikibaseVocabularyUnitTest method qualifierPAndQAreBytes.
@Test
public void qualifierPAndQAreBytes() {
BigdataStatement statement = roundTrip(uris().entityIdToURI("P"), uris().property(PropertyType.QUALIFIER) + "P", new LiteralImpl("cat"));
assertThat(statement.getSubject().getIV(), instanceOf(VocabURIByteIV.class));
assertThat(statement.getPredicate().getIV(), instanceOf(VocabURIByteIV.class));
}
use of org.openrdf.model.impl.LiteralImpl in project wikidata-query-rdf by wikimedia.
the class WikibaseVocabularyUnitTest method descriptionIsByte.
@Test
public void descriptionIsByte() {
BigdataStatement statement = roundTrip("entity:Q23", SchemaDotOrg.DESCRIPTION, new LiteralImpl("some dude", "en"));
assertThat(statement.getPredicate().getIV(), instanceOf(VocabURIByteIV.class));
}
use of org.openrdf.model.impl.LiteralImpl in project wikidata-query-rdf by wikimedia.
the class WikibaseVocabularyUnitTest method labelIsByte.
@Test
public void labelIsByte() {
BigdataStatement statement = roundTrip("entity:Q23", RDFS.LABEL, new LiteralImpl("George", "en"));
/*
* See WikibaseInlineUrIFactoryUnitTest for tests about the entity
* namespace.
*/
assertThat(statement.getPredicate().getIV(), instanceOf(VocabURIByteIV.class));
}
Aggregations