-
Notifications
You must be signed in to change notification settings - Fork 16
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
improve usability of Literals - matching, searching, indexing #18
Comments
For searching a substring of a triple, you can use the new filter option in If you want, you can put an example in README or in the examples/ folder. |
For N3Util, what functions are you using? I think we might copy those in here and remove the dependency, or we might |
Filter may not solve troubles related to searching double/float numbers which get stored in form |
You are right, you can use filter to run a test over the triples, e.g. a x > 42, but it's useless in selecting a specific triple. |
+1 |
@ahdinosaur I could give it a try in next 2 weeks, do you have any feedback which could help us meet your needs? some failing test cases by any chance?! 😄 |
@elf-pavlik sure, i can work on that. |
awesome! thanks @ahdinosaur 🎈 |
@elf-pavlik to describe what i have so far, if you were to add an object to the graph, you should be able to query it with the same properties that you added it with. db.jsonld.put({
'@context': "http://vocab.org",
'@type': "Person",
name: "ahdinosaur",
}, function (err) {
db.jsonld.put({
'@context': "http://vocab.org",
'@type': "Person",
name: "elf-pavlik",
}, function (err) {
db.jsonld.search({
'@type': "Person",
}, function (err, results) {
// results should be both people
db.jsonld.search({
name: "ahdinosaur",
}, function (err, results) {
// results should be first person
});
});
});
}); i achieved this by using the code from within levelgraph, although i didn't properly add the functionality to |
Shortly for now just to capture it!
In a way we store literals currently. One needs to make extremely precise matching while using raw LevelGraph
db.get()
, as well as rawdb.search()
since currently we don't provide any kind ofdb.jsonld.search()
Having for example number stored as
While we run our search query we need to match given literal very exactly, and make sure not to confuse for example #double with #float
Also searching literals with language tags seems sub-optimal, having stored:
Currently would not get matches if searched for
Plus most people may need to get N3Util to work with data in a convenient way... We could at least expose one included in LevelGraph-JSONLD somehow? Still on its own it won't address issues with searching and matching a Literal
The text was updated successfully, but these errors were encountered: