[Wikidata] Changing the datatype of a property in test.wikidata.org

2016-10-11 Thread Loic Dachary
Hi,

I'd like to run integration tests using test.wikidata.org[1] and the "subclass 
of" property. Unfortunately it already exist ... with a datatype that is 
different from what wikidata.org has (wikibase-item)[2]. It does not seem to be 
possible to change that via the API[3]. Deleting a property does not seem 
possible either.  asked a month ago in the thread "Deleting properties / items 
in test.wikidata.org".

It's not an absolute blocker: I can add code so that "subclass of" is a random 
string instead when test.wikidata.org is used. But before doing that and making 
integration tests more difficult to debug and implement, I'd like to be sure 
I'm not missing something.

How do you suggest I deal with this problem ?

Cheers

[1] 
https://phabricator.wikimedia.org/diffusion/PBFB/browse/master/tests/test_repository.py
[2] https://test.wikidata.org/wiki/Property:P748
[3] https://www.wikidata.org/w/api.php?action=help&modules=wbeditentity
-- 
Loïc Dachary, Artisan Logiciel Libre

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Changing the datatype of a property in test.wikidata.org

2016-10-11 Thread Denny Vrandečić
Properties don't have an identity besides their ID - so you could in
test.wd just rename the subclass of property and reclaim that name.

On Tue, Oct 11, 2016 at 1:19 PM Loic Dachary  wrote:

> Hi,
>
> I'd like to run integration tests using test.wikidata.org[1] and the
> "subclass of" property. Unfortunately it already exist ... with a datatype
> that is different from what wikidata.org has (wikibase-item)[2]. It does
> not seem to be possible to change that via the API[3]. Deleting a property
> does not seem possible either.  asked a month ago in the thread "Deleting
> properties / items in test.wikidata.org".
>
> It's not an absolute blocker: I can add code so that "subclass of" is a
> random string instead when test.wikidata.org is used. But before doing
> that and making integration tests more difficult to debug and implement,
> I'd like to be sure I'm not missing something.
>
> How do you suggest I deal with this problem ?
>
> Cheers
>
> [1]
> https://phabricator.wikimedia.org/diffusion/PBFB/browse/master/tests/test_repository.py
> [2] https://test.wikidata.org/wiki/Property:P748
> [3] https://www.wikidata.org/w/api.php?action=help&modules=wbeditentity
> --
> Loïc Dachary, Artisan Logiciel Libre
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Changing the datatype of a property in test.wikidata.org

2016-10-11 Thread Loic Dachary


On 11/10/2016 22:50, Denny Vrandečić wrote:
> Properties don't have an identity besides their ID - so you could in test.wd 
> just rename the subclass of property and reclaim that name.

Of course !

Thank you :-)

> 
> On Tue, Oct 11, 2016 at 1:19 PM Loic Dachary  > wrote:
> 
> Hi,
> 
> I'd like to run integration tests using test.wikidata.org 
> [1] and the "subclass of" property. Unfortunately 
> it already exist ... with a datatype that is different from what wikidata.org 
>  has (wikibase-item)[2]. It does not seem to be possible 
> to change that via the API[3]. Deleting a property does not seem possible 
> either.  asked a month ago in the thread "Deleting properties / items in 
> test.wikidata.org ".
> 
> It's not an absolute blocker: I can add code so that "subclass of" is a 
> random string instead when test.wikidata.org  is 
> used. But before doing that and making integration tests more difficult to 
> debug and implement, I'd like to be sure I'm not missing something.
> 
> How do you suggest I deal with this problem ?
> 
> Cheers
> 
> [1] 
> https://phabricator.wikimedia.org/diffusion/PBFB/browse/master/tests/test_repository.py
> [2] https://test.wikidata.org/wiki/Property:P748
> [3] https://www.wikidata.org/w/api.php?action=help&modules=wbeditentity
> --
> Loïc Dachary, Artisan Logiciel Libre
> 
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org 
> https://lists.wikimedia.org/mailman/listinfo/wikidata
> 
> 
> 
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
> 

-- 
Loïc Dachary, Artisan Logiciel Libre

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata