test_class.file: wdtk-datamodel/src/test/java/org/wikidata/wdtk/datamodel/helpers/DatamodelFilterTest.java
test_class.identifier: DatamodelFilterTest
test_case.body: @Test
  	public void testEmptyPropertyFilterForItem() {
  		ItemIdValue s = Datamodel.makeWikidataItemIdValue("Q42");
  		PropertyIdValue p1 = Datamodel.makeWikidataPropertyIdValue("P1");
  		PropertyIdValue p2 = Datamodel.makeWikidataPropertyIdValue("P2");
  		PropertyIdValue p3 = Datamodel.makeWikidataPropertyIdValue("P3");
  		PropertyIdValue p4 = Datamodel.makeWikidataPropertyIdValue("P4");
  
  		DocumentDataFilter documentDataFilter = new DocumentDataFilter();
  		documentDataFilter.setPropertyFilter(Collections.emptySet());
  		DatamodelFilter filter = new DatamodelFilter(new DataObjectFactoryImpl(), documentDataFilter);
  
  		ItemDocument itemDocument = Datamodel.makeItemDocument(
  				s,
  				Collections.emptyList(),
  				Collections.emptyList(),
  				Collections.emptyList(),
  				Arrays.asList(
  						makeTestStatementGroup(p1, s),
  						makeTestStatementGroup(p2, s),
  						makeTestStatementGroup(p3, s),
  						makeTestStatementGroup(p4, s)
  				),
  				Collections.emptyMap()
  		);
  
  		ItemDocument itemDocumentFiltered = Datamodel.makeItemDocument(s,
  				Collections.emptyList(), Collections.emptyList(), Collections.emptyList(),
  				Collections.emptyList(), Collections.emptyMap()
  		);
  
  		assertEquals(itemDocumentFiltered, filter.filter(itemDocument));
  	}
test_case.class_method_signature: DatamodelFilterTest.testEmptyPropertyFilterForItem()
test_case.full_signature: @Test public void testEmptyPropertyFilterForItem()
test_case.identifier: testEmptyPropertyFilterForItem
test_case.invocations: makeWikidataItemIdValue makeWikidataPropertyIdValue makeWikidataPropertyIdValue makeWikidataPropertyIdValue makeWikidataPropertyIdValue setPropertyFilter emptySet makeItemDocument emptyList emptyList emptyList asList makeTestStatementGroup makeTestStatementGroup makeTestStatementGroup makeTestStatementGroup emptyMap makeItemDocument emptyList emptyList emptyList emptyList emptyMap assertEquals filter
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEmptyPropertyFilterForItem()
focal_class.declarator: dataObjectFactory
focal_class.modifier: private final
focal_class.original_string: private final DataObjectFactory dataObjectFactory;
focal_class.type: DataObjectFactory
focal_class.var_name: dataObjectFactory
focal_class.declarator: filter
focal_class.modifier: private final
focal_class.original_string: private final DocumentDataFilter filter;
focal_class.type: DocumentDataFilter
focal_class.var_name: filter
focal_class.file: wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/helpers/DatamodelFilter.java
focal_class.identifier: DatamodelFilter
focal_class.class_method_signature: DatamodelFilter.DatamodelFilter(DataObjectFactory dataObjectFactory, DocumentDataFilter filter)
focal_class.full_signature: public  DatamodelFilter(DataObjectFactory dataObjectFactory, DocumentDataFilter filter)
focal_class.identifier: DatamodelFilter
focal_class.modifiers: public
focal_class.parameters: (DataObjectFactory dataObjectFactory, DocumentDataFilter filter)
focal_class.signature:  DatamodelFilter(DataObjectFactory dataObjectFactory, DocumentDataFilter filter)
focal_class.class_method_signature: DatamodelFilter.filter(ItemDocument item)
focal_class.full_signature: public ItemDocument filter(ItemDocument item)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (ItemDocument item)
focal_class.return: ItemDocument
focal_class.signature: ItemDocument filter(ItemDocument item)
focal_class.class_method_signature: DatamodelFilter.filter(PropertyDocument property)
focal_class.full_signature: public PropertyDocument filter(PropertyDocument property)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (PropertyDocument property)
focal_class.return: PropertyDocument
focal_class.signature: PropertyDocument filter(PropertyDocument property)
focal_class.class_method_signature: DatamodelFilter.filter(MediaInfoDocument mediaInfo)
focal_class.full_signature: public MediaInfoDocument filter(MediaInfoDocument mediaInfo)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (MediaInfoDocument mediaInfo)
focal_class.return: MediaInfoDocument
focal_class.signature: MediaInfoDocument filter(MediaInfoDocument mediaInfo)
focal_class.class_method_signature: DatamodelFilter.filter(LexemeDocument lexeme)
focal_class.full_signature: public LexemeDocument filter(LexemeDocument lexeme)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (LexemeDocument lexeme)
focal_class.return: LexemeDocument
focal_class.signature: LexemeDocument filter(LexemeDocument lexeme)
focal_class.class_method_signature: DatamodelFilter.filter(FormDocument form)
focal_class.full_signature: public FormDocument filter(FormDocument form)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (FormDocument form)
focal_class.return: FormDocument
focal_class.signature: FormDocument filter(FormDocument form)
focal_class.class_method_signature: DatamodelFilter.filter(SenseDocument sense)
focal_class.full_signature: public SenseDocument filter(SenseDocument sense)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (SenseDocument sense)
focal_class.return: SenseDocument
focal_class.signature: SenseDocument filter(SenseDocument sense)
focal_class.class_method_signature: DatamodelFilter.filterForms(List<FormDocument> forms)
focal_class.full_signature: private List<FormDocument> filterForms(List<FormDocument> forms)
focal_class.identifier: filterForms
focal_class.modifiers: private
focal_class.parameters: (List<FormDocument> forms)
focal_class.return: List<FormDocument>
focal_class.signature: List<FormDocument> filterForms(List<FormDocument> forms)
focal_class.class_method_signature: DatamodelFilter.filterSenses(List<SenseDocument> senses)
focal_class.full_signature: private List<SenseDocument> filterSenses(List<SenseDocument> senses)
focal_class.identifier: filterSenses
focal_class.modifiers: private
focal_class.parameters: (List<SenseDocument> senses)
focal_class.return: List<SenseDocument>
focal_class.signature: List<SenseDocument> filterSenses(List<SenseDocument> senses)
focal_class.class_method_signature: DatamodelFilter.flatten(Collection<List<T>> values)
focal_class.full_signature: private List<T> flatten(Collection<List<T>> values)
focal_class.identifier: flatten
focal_class.modifiers: private
focal_class.parameters: (Collection<List<T>> values)
focal_class.return: List<T>
focal_class.signature: List<T> flatten(Collection<List<T>> values)
focal_class.class_method_signature: DatamodelFilter.filterMonoLingualTextValues(Collection<MonolingualTextValue> values)
focal_class.full_signature: private List<MonolingualTextValue> filterMonoLingualTextValues(Collection<MonolingualTextValue> values)
focal_class.identifier: filterMonoLingualTextValues
focal_class.modifiers: private
focal_class.parameters: (Collection<MonolingualTextValue> values)
focal_class.return: List<MonolingualTextValue>
focal_class.signature: List<MonolingualTextValue> filterMonoLingualTextValues(Collection<MonolingualTextValue> values)
focal_class.class_method_signature: DatamodelFilter.filterStatementGroups(List<StatementGroup> statementGroups)
focal_class.full_signature: private List<StatementGroup> filterStatementGroups(List<StatementGroup> statementGroups)
focal_class.identifier: filterStatementGroups
focal_class.modifiers: private
focal_class.parameters: (List<StatementGroup> statementGroups)
focal_class.return: List<StatementGroup>
focal_class.signature: List<StatementGroup> filterStatementGroups(List<StatementGroup> statementGroups)
focal_class.class_method_signature: DatamodelFilter.filterSiteLinks(Map<String, SiteLink> siteLinks)
focal_class.full_signature: private Map<String, SiteLink> filterSiteLinks(Map<String, SiteLink> siteLinks)
focal_class.identifier: filterSiteLinks
focal_class.modifiers: private
focal_class.parameters: (Map<String, SiteLink> siteLinks)
focal_class.return: Map<String, SiteLink>
focal_class.signature: Map<String, SiteLink> filterSiteLinks(Map<String, SiteLink> siteLinks)
focal_method.body: public ItemDocument filter(ItemDocument item) {
  		return dataObjectFactory.getItemDocument(
  				item.getEntityId(),
  				filterMonoLingualTextValues(item.getLabels().values()),
  				filterMonoLingualTextValues(item.getDescriptions().values()),
  				filterMonoLingualTextValues(flatten(item.getAliases().values())),
  				filterStatementGroups(item.getStatementGroups()),
  				filterSiteLinks(item.getSiteLinks()),
  				item.getRevisionId()
  		);
  	}
focal_method.class_method_signature: DatamodelFilter.filter(ItemDocument item)
focal_method.full_signature: public ItemDocument filter(ItemDocument item)
focal_method.identifier: filter
focal_method.invocations: getItemDocument getEntityId filterMonoLingualTextValues values getLabels filterMonoLingualTextValues values getDescriptions filterMonoLingualTextValues flatten values getAliases filterStatementGroups getStatementGroups filterSiteLinks getSiteLinks getRevisionId
focal_method.modifiers: public
focal_method.parameters: (ItemDocument item)
focal_method.return: ItemDocument
focal_method.signature: ItemDocument filter(ItemDocument item)