Comments (8)
P4656 should be easy. I only need to replace the property when url matches .+(mediawiki|wik(i(books|data|(m|p)edia|news|quote|source|species|versity|voyage)|tionary)|wmflabs)\.org.+
.
Mapping the projects for P143 should be the hard part. Are both really necessary? Isn't it redundant?
from wd.
Well I guess P143 existed 'long' before P4656 ; I can imagine there are some applications/tools/etc that rely on P143 (like, "give me all statements sourced from French Wikipedia" or smth?) but I don’t know of any myself to be honest.
I would say, ideally both would be done, but it does not need to be done by this extension either: I agree the mapping is hard to make, maintain and ship as part of this extension.
So I would say: please switch P4656, and that’s it. If P143 really is a must-have, someone can implement a separate bot process to populate it based on P4656.
from wd.
Why not just support the most common values for P143 and skip if it's unknown. That's what wwwyzzerdd does https://github.com/derenrich/wwwyzzerdd/blob/main/src/write.ts#L66
from wd.
@derenrich @JeanFred how about this. I will match the current url against this list of domains and if it matches, it will receive Wikimedia import URL instead of reference url. The value of imported from Wikimedia project will be the corresponding item (?project
).
This should automatically update itself. What do you think?
from wd.
@derenrich @JeanFred how about this. I will match the current url against this list of domains and if it matches, it will receive Wikimedia import URL instead of reference url. The value of imported from Wikimedia project will be the corresponding item (
?project
).This should automatically update itself. What do you think?
That sounds perfect, yes
from wd.
Seems good
from wd.
okay, I will exclude projects that are just hosted on wikimedia websites since I only want to match hostnames:
SELECT ?hostname ?item WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?project wdt:P31/wdt:P279* wd:Q14827288.
?project wdt:P856 ?url.
BIND(REPLACE(STR(?project), "http://www.wikidata.org/entity/", "") as ?item).
BIND(REPLACE(STR(?url), "^[a-z]+://", "") as ?sans_protocol).
FILTER(!REGEX(?sans_protocol, "/.+$", "i")).
BIND(REPLACE(?sans_protocol, "/$", '') as ?hostname).
}
If you see a problem with this let me know.
from wd.
The latest verson (.304
) will make source statements like these.
If you notice issues, please re-open this ticket.
from wd.
Related Issues (20)
- Weird bugs? HOT 4
- Miraheze article resolver HOT 4
- Sort dropdowns by last chosen by user HOT 1
- Better entity search for Open Library authors HOT 1
- furigana doesn't work for words that include both katakana and hiragana HOT 1
- Amazon Author ID not being parsed HOT 3
- Add review score by when adding a tripadvisor ID HOT 7
- Could we have a way to debug when wd4w doesn't recognise a URL? HOT 4
- Keep seaching for metadata when switching tabs
- Warn when on blocked IP HOT 5
- Looks like the Google Map id is not extracted from Google Map HOT 3
- Feature request: scan page and highlight links that are not yet linked to wikidata HOT 4
- setting `instance of` to `writer` isn't recommended. HOT 10
- Default instance of for books should be "written work" HOT 3
- Temporary build issue due to dependency HOT 2
- Feature request: Search via wikipedia url pasted/drag'n'dropped into the search box HOT 2
- Sidebar should link to item page when item exists HOT 5
- Help fix ID extraction from thecoversation.com HOT 5
- QUOTA_BYTES quota exceeded - do some wikidata entries return too much?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wd.