diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-01 13:06:59 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-01 13:06:59 +0100 |
commit | a5695dcc4e1be8fccd0b35ba4672cdb3c2c119d7 (patch) | |
tree | 753cc250c741e6b38a53b50430bfe0aaec181da9 | |
parent | 1a6b812276326d03869cd78d3a184868233c05d4 (diff) | |
download | bsfs-a5695dcc4e1be8fccd0b35ba4672cdb3c2c119d7.tar.gz bsfs-a5695dcc4e1be8fccd0b35ba4672cdb3c2c119d7.tar.bz2 bsfs-a5695dcc4e1be8fccd0b35ba4672cdb3c2c119d7.zip |
minor fixes
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CHANGELOG | 0 | ||||
-rw-r--r-- | bsfs/graph/graph.py | 4 | ||||
-rw-r--r-- | bsfs/graph/schema.nt | 4 | ||||
-rw-r--r-- | test/graph/ac/test_null.py | 1 |
5 files changed, 4 insertions, 6 deletions
@@ -22,6 +22,7 @@ build/ # doc builds doc/build/ +doc/source/api # doc extra files diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/CHANGELOG diff --git a/bsfs/graph/graph.py b/bsfs/graph/graph.py index a74da01..a356533 100644 --- a/bsfs/graph/graph.py +++ b/bsfs/graph/graph.py @@ -28,9 +28,7 @@ __all__: typing.Sequence[str] = ( ## code ## class Graph(): - """The Graph class is - - The Graph class provides a convenient interface to query and access a graph. + """The Graph class provides a convenient interface to query and access a graph. Since it logically builds on the concept of graphs it is easier to navigate than raw triple stores. Naturally, it uses a triple store as *backend*. It also controls actions via access permissions to a *user*. diff --git a/bsfs/graph/schema.nt b/bsfs/graph/schema.nt index f619746..cba5e80 100644 --- a/bsfs/graph/schema.nt +++ b/bsfs/graph/schema.nt @@ -9,11 +9,11 @@ prefix bsm: <http://bsfs.ai/schema/Meta#> # literals bsfs:Number rdfs:subClassOf bsfs:Literal . -xsd:integer rdfs:subClassOf bsfs:Number . +xsd:float rdfs:subClassOf bsfs:Number . # predicates bsm:t_created rdfs:subClassOf bsfs:Predicate ; rdfs:domain bsfs:Node ; - rdfs:range xsd:integer ; + rdfs:range xsd:float ; bsfs:unique "true"^^xsd:boolean . diff --git a/test/graph/ac/test_null.py b/test/graph/ac/test_null.py index 7d25980..e33d46a 100644 --- a/test/graph/ac/test_null.py +++ b/test/graph/ac/test_null.py @@ -132,7 +132,6 @@ class TestNullAC(unittest.TestCase): ast.filter.Any(ns.bse.author, ast.filter.Equals('Me, Myself, and I'))) ac = NullAC(self.backend, self.user) self.assertEqual(query, ac.filter_read(self.ent_type, query)) - return query ## main ## |