surfrdf
surfrdf copied to clipboard
SuRF: a python Object RDF Mapper (ORM).
The logic for separating the prefix from the predicate was to simple. Also my first attempt in fixing this (see 74b0322e4bef8b15e5972085cbe71d81345520eb) was not sufficient, as both the prefix _and_ the...
The `_convert.py` method of the QueryReader used `if value:` to check if a value is present. This fails, if the value evaluates to False, which is the case e.g. for...
To support prefixes with underscores (e.g. `WGS84_POS`), the `attr_name` must be split at the _last_ underscore.
`Resource` used the following statement to select the appropriate dict bases on the `direct` variable: `rdf_dict = direct and self.__rdf_direct or self.__rdf_inverse` This has two issues: first, it is not...
During initialization of a new `Resource`, the `rdf:type` was only set to the internal `__rdf_direct` dict. This caused an access on the `rdf_type` attribute to a request to the store....
The instance factory checked for a list by checking for a `__iter__` property. However, `URIRef` also implements this property, as it is a string type and string can be iterated....
This fixes a bug that prevents retrieved entities to be converted to their correct type, if they are also of type `http://www.w3.org/2002/07/owl#NamedIndividual`
Py3
So, I think I fixed #5 ...
This pull request builds upon [the Py3 pull request of @PonteIneptique](https://github.com/cosminbasca/surfrdf/pull/18). It fixes `Resource` to not reset the `dirty` flag when a property is accessed (via `__getattr__`)
This pull request builds upon [the Py3 pull request of @PonteIneptique](https://github.com/cosminbasca/surfrdf/pull/18). It fixes the `RDFWriter` to update all passed resources and not just one