Comments (6)
Love to do so but I doubt I have currently time to make it. I see good progress here :)
from reality.
I was adding some more Wikidata predicates to wikidata.rb but then started to wonder if adding them manually is the correct way. I was simply doing copy-paste from Wikidata pages. Wouldn't it be easier to just automatically fetch all predicates from Wikidata?
from reality.
My solution currently is to add them manually. There IS automatically extracted list of predicates (data/wikidata-predicates.yaml), but with manuall adding we can:
- decide right name: short, unambiguous and generic enough;
- decide right type (plural/singular, entity or string or number or...);
- group predicates logically (currently only by comments in
wikidata.rb
, but I imagine those comments can some time became some sort of "property groups").
I can see no way to automate this.
Speaking broader, entire Reality is somewhat about hand-craftedness (there's many data available in open datasources, and what we are trying to do is provide easy and pretty access to them).
from reality.
Aye, I see your point. I believe Wikidata has already done some fighting over the predicate names so I (as non-native English person) was happy to accept whatever they have. Grouping is a good idea but might also be hard to do as predicates can be used in several topics. But you need to start from somewhere so lets do some handcrafting!
from reality.
I believe Wikidata has already done some fighting over the predicate names so I (as non-native English person) was happy to accept whatever they have.
I'm non-native English myself, but if you look at predicate names in aforementioned file, you can see that many of them are too long ("country of citizenship" or "located in the administrative territorial entity", for example), and/or just hard to type as method name ("ISO 3166-1 alpha-3 code" -- what would the method should been named? "iso_3166_1_alpha_3_code"?). Also, I wanted that predicate name made clear distinction of plurals and singulars (so, I use "parts" instead of "part_of", which is questionable).
All in all, everything here is just definitely "to start from somewhere", I'm still looking forward for a good an consistent policy of property names.
from reality.
@talakoski I'm finalizing "nearest release" plans till Friday, don't you want to do some pull request? :)
from reality.
Related Issues (20)
- Interest in a CLI HOT 14
- Entity caching
- IRuby Notebook integration HOT 1
- Entity#to_h
- TZOffset parsing bug
- Disambiguator
- Wikidata predicate flexibility
- More lists in Dictionaries
- More Wikipedia types by infobox
- Idea: Default to Wikidata label search if no Wikipedia article found HOT 3
- Integration with wit.ai HOT 1
- Entity#non_existent_attribute should raise NoMethodError HOT 4
- Refactor lib/reality/wikidata.rb
- Cleanup about method inclusion HOT 1
- Extras: OpenStreetMap
- For Measure the gem Unitwise could be very efficient. HOT 1
- undefined method 'config' for reality HOT 1
- Error loading particular Wikidata item HOT 2
- Can't load 'miracles' HOT 1
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 reality.