Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions for empty items #119

Closed
wants to merge 2 commits into from
Closed

Suggestions for empty items #119

wants to merge 2 commits into from

Conversation

filbertkm
Copy link
Contributor

There used to be (?) suggestions (e.g. P31) for items with no statements yet.

This provides suggestions by item when there are no property ids used yet on the item, suggesting overall most used properties like P31 that users may want to start with on an empty item.

Bug: T92748

There used to be (?) suggestions (e.g. P31) for items
with no statements yet.

This provides suggestions by item when there are no
property ids used yet on the item, suggesting overall
most used properties like P31 that users may want
to start with on an empty item.
@filbertkm
Copy link
Contributor Author

@@ -68,7 +68,7 @@ public function testSuggestByPropertyIds() {
}

public function testSuggestByItem() {
$item = Item::newEmpty();
$item = new Item();
$item->setId( new ItemId( 'Q42' ) );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid calling setIt, use new Item( new ItemId( ... ) ).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, though not going to touch more of this code. should be a separate task to update code for new data model stuff.

@xchrdw
Copy link
Member

xchrdw commented Mar 16, 2015

I think the suggestions for empty objects were not merged? #87 this PR is still open. As far as I remember Lydia wanted to wait with it until the qualifier/refrence suggestion part was deployed but it wasn't merged afterwards.

@filbertkm
Copy link
Contributor Author

@xchrdw I missed that pull request... I think yours is a better approach for this. with my patch, bot-added properties that we don't want suggested (e.g. freebase identifiers) might appear in suggestions.

@filbertkm
Copy link
Contributor Author

would like approach in #87 instead of this. (rebased in https://github.com/Wikidata-lib/PropertySuggester/tree/initialSuggestionsRebased)

@filbertkm filbertkm closed this Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants