profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/aucampia/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Iwan Aucamp aucampia @coopnorge Oslo, Norway https://orcid.org/0000-0002-7325-3231 https://gitlab.com/aucampia

aucampia/dnspod-bash 2

A simple bash client for dnspod

aucampia/apache-httpclient-osgi 1

Don't delete this because it will break concurrent systems build for PCC API

aucampia/aucampia-gentoo-overlay 1

Iwan Aucamp's Gentoo Overlay

aucampia/dokuwiki-tool 1

A command line tool for working with DokuWiki

aucampia/Activiti 0

Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under the Apache license. Activiti runs in any Java application, on a server, on a cluster or in the cloud. It integrates perfectly with Spring, it is extremely lightweight and based on simple concepts.

aucampia/Defending-DevOps 0

Lab Material for the Two-Day Defending Modern DevOps Environments Course

aucampia/dnspod-int-api-docs 0

DNSPod International API Documents

pull request commentRDFLib/rdflib

Add @expectedFailure unit tests for #1294 and type annotations for compare.py

@rob-metalinkage I added some better explanations for the tests, and tests names are also more descriptive and not issue specific.

Again this does not fix the problem, but it sets constraints on what a fix for this issue should do. The hope is that it makes it easier for whoever looks at this later.

I may look at this again in the future myself, but this at least provides a very minimal test that should pass which makes the issue easier to pinpoint, and together with type annotations makes it easier for me to see what the intent was of the original author.

aucampia

comment created time in 19 days

push eventiafork/rdflib

Iwan Aucamp

commit sha bf9a61645f40d23df7dce1dc6c70b436053d4603

Add unit tests for issue #1294 with @expectedFailure Also add type annotations to rdflib.compare to make it easier to understand the code.

view details

push time in 19 days

push eventiafork/rdflib

Iwan Aucamp

commit sha 400052af13d84a3c64481bd5dd18858e164305ae

Add unit tests for issue #1294 with @expectedFailure Also add type annotations to rdflib.compare to make it easier to understand the code.

view details

push time in 19 days

push eventiafork/rdflib

Iwan Aucamp

commit sha 46647670479f536f8e9a5811a95f1806e8c1fa18

Add unit tests for issue #1294 with @expectedFailure Also add type annotations to rdflib.compare to make it easier to understand the code.

view details

push time in 19 days

push eventiafork/rdflib

bhadoo-aditya

commit sha cc109dee42d9a221ebba9caae8cc5c8b6bba4351

Test cases for normalized string

view details

bhadoo-aditya

commit sha fedb4f726ce795c3d22c96a020569c1a29b448ff

fix #876 xsd:normalizedString

view details

Florian Ludwig

commit sha 2a2bb0d3b2f2a89b00ed57e087cf658ea0cc4abf

support day, nonth and year function for date

view details

Florian Ludwig

commit sha 7c1d49b19a5790fbd8d6b25e104dba75213d67f3

reformat edited files using black

view details

Kernc

commit sha 6477efdb74b581df57d80841133e22c8e5eeacec

ENH: Make ClosedNamespace extend str like Namespace does Useful for testing URIRef is from a particular namespace by means of: URIRef(...).startswith(NS) ^^^^^^^^^^^^^^^ where `URIRef.defrag()` currently wouldn't cut it.

view details

Kernc

commit sha f5c6bb1af1770a0f625e4a2fe4e5202e2244d6a3

Better yet, ClosedNamespace is a Namespace

view details

Kernc

commit sha bf994d70803b92b8ba52827165dd5b5552ab1582

Minor refactor/restlye for Py3.6+

view details

Tom Gillespie

commit sha 2f2c6a79ddfc6c882412fa15fcce8af2ce196c8a

container.py fix crlf line endings

view details

Tom Gillespie

commit sha dd6f620f6b7e15723664de2afad5d13506c0e966

tweaks to hierarchy to improve load times I think that most of the difference actually comes from patching uuid to not waste 25 milliseconds every time it is imported but there is a bit of improvement here

view details

Tom Gillespie

commit sha 099e22fc714208b2688abdfc218cd173fe018600

parser.py fix pathlib mismatches

view details

Nicholas Car

commit sha 112e3cc1e6e744db8037e213378437166f60e75f

dataset examples file

view details

Nicholas Car

commit sha 908f1d17d7d15665265fdf3a564efeb936e9133b

remove decode() for master compat

view details

Nicholas Car

commit sha 760c534fc1f00f09af6c9e907017d59aeb0b1629

remove other decode() for master compat

view details

Nicholas Car

commit sha e465b2d8e42bee16aeeec7ce4103f7ff8d385f9a

update to 6.0.0; add SPARQL e.g.

view details

Nicholas Car

commit sha 3c381fa4b4ef600a79eb9b84f6910a37013ca420

trivial grammar updates

view details

Nicholas Car

commit sha 2d7500d4ded0e547e4f29a04b5d77070bda0a84e

trivial grammar updates

view details

Nicholas Car

commit sha c0533b41b84bc69d94be0401f5d1be33ef636ec2

updated Python ref URL

view details

Nicholas Car

commit sha 914a5ff2c32ae867f283fb4a6479e7156388410b

stub 5to6 page

view details

Nicholas Car

commit sha ed16b9664f31a8738c6f193793c1c84c912302f8

removed non-resolving links, added new multi-graph e.g., fixed e.g. file docco error, fixed parse() for Dataset/ConGr

view details

Nicholas Car

commit sha 058a3d52f3a0e8055034cb2594af17eb680e41e3

minor: Python 3 code style

view details

push time in 19 days

push eventiafork/vfs

Iwan Aucamp

commit sha f1431dccb0df6c2b40ec4d656931cab541fff42d

gs backend: Return an error when trying to copy/move a file with non 0 cursor position. Under some circumstances gs.File.CopyToFile copies using f.tempFile as a io.Reader. The problem with this is that if the cursor is not at position 0, copying using io.Reader will not copy the whole file. This change adds a check to gs.File.CopyToFile that will return an error if the method is called on a file with non 0 cursor position.

view details

push time in 22 days

PR opened C2FO/vfs

gs backend: Return an erro when trying to copy/move a file with non 0 cursor position.

nder some circumstances gs.File.CopyToFile copies using f.tempFile as a io.Reader. The problem with this is that if the cursor is not at position 0, copying using io.Reader will not copy the whole file.

This change adds a check to gs.File.CopyToFile that will return an error if the method is called on a file with non 0 cursor position.

+132 -62

0 comment

2 changed files

pr created time in 22 days

push eventiafork/vfs

Iwan Aucamp

commit sha 9f21dd9b286eb97bfbc0030047df7818dc342fa7

gs backend: Return an erro when trying to copy/move a file with non 0 cursor position. Under some circumstances gs.File.CopyToFile copies using f.tempFile as a io.Reader. The problem with this is that if the cursor is not at position 0, copying using io.Reader will not copy the whole file. This change adds a check to gs.File.CopyToFile that will return an error if the method is called on a file with non 0 cursor position.

view details

push time in 22 days

push eventiafork/vfs

Iwan Aucamp

commit sha 9b39ab9c1c172664735c9653526b91bb5a8696eb

gs backend: Return an erro when trying to copy/move a file with non 0 cursor position. Under some circumstances gs.File.CopyToFile copies using f.tempFile as a io.Reader. The problem with this is that if the cursor is not at position 0, copying using io.Reader will not copy the whole file. This change adds a check to gs.File.CopyToFile that will return an error if the method is called on a file with non 0 cursor position.

view details

push time in 22 days

push eventiafork/vfs

Iwan Aucamp

commit sha f75877a7faac5e840751aed0868c6287201b84ff

gs backend: Use a clean file handle when copying using Reader Under some circumstances gs.File.CopyToFile copies using f.tempFile as a io.Reader. The problem with this is that if the cursor is not at position 0, copying using io.Reader will not copy the whole file. This change adds a check to gs.File.CopyToFile that will result in an error if the method is called on a file with non 0 cursor position.

view details

push time in 22 days

push eventiafork/rdflib

Iwan Aucamp

commit sha f1150c8cb3ccf10a895a71aabf52c779d7fa6f87

Fix typo NoteToSparql -> NodeToSparql

view details

push time in 23 days

Pull request review commentRDFLib/rdflib

Add unit test for #919 and more type hints for sparqlconnector and sparqlstore

  BNODE_IDENT_PATTERN = re.compile(r"(?P<label>_\:[^\s]+)") +NoteToSparql = Callable[..., str]

Indeed, fixing it :)

aucampia

comment created time in 23 days

PullRequestReviewEvent

Pull request review commentRDFLib/rdflib

Migration from ClosedNamespace to DeclaredNamespace

     "util", ] +import sys

I don't think this is appropriate. The library should just log, setting up handlers should be up to users of the library.

hsolbrig

comment created time in 24 days

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentkernc/rdflib

Fix infinite recursion when __repr__ is called

 class ClosedNamespace(Namespace):      def __new__(cls, uri, terms):         rt = super().__new__(cls, uri)+        rt.__terms = terms

I think it is best to not try and fix all problems there in one PR, better to get it in to the release and make an issue for the other issues. This is not a problem introduced in your PR.

aucampia

comment created time in 24 days

PullRequestReviewEvent

Pull request review commentkernc/rdflib

Fix infinite recursion when __repr__ is called

 class ClosedNamespace(Namespace):      def __new__(cls, uri, terms):         rt = super().__new__(cls, uri)+        rt.__terms = terms

Apologies, I was thinking of fixing repr to show terms, but then decided against that, removed it.

aucampia

comment created time in 24 days

PullRequestReviewEvent

push eventiafork/rdflib

Iwan Aucamp

commit sha bc42cd12eba18442b2f48885f5e906b1b315bfc5

Update rdflib/namespace.py Remove stray line Co-authored-by: kernc <kerncece@gmail.com>

view details

push time in 24 days

Pull request review commentRDFLib/rdflib

ENH: Make ClosedNamespace extend Namespace

 def __new__(cls, value):      @property     def title(self):+        # Override for DCTERMS.title to return a URIRef instead of str.title method         return URIRef(self + "title")      def term(self, name):         # need to handle slices explicitly because of __getitem__ override         return URIRef(self + (name if isinstance(name, str) else "")) -    def __getitem__(self, key, default=None):+    def __getitem__(self, key):         return self.term(key)      def __getattr__(self, name):         if name.startswith("__"):  # ignore any special Python names!             raise AttributeError-        else:-            return self.term(name)+        return self.term(name)      def __repr__(self):

@kernc I updated PR with your suggestion and added tests to validate.

kernc

comment created time in 24 days

PullRequestReviewEvent

Pull request review commentkernc/rdflib

Fix infinite recursion when __repr__ is called

 def __getattr__(self, name):         return self.term(name)      def __repr__(self):-        return f"Namespace({self!r})"+        return f"Namespace({self})"

fixed and added tests for it.

aucampia

comment created time in 24 days

PullRequestReviewEvent

Pull request review commentkernc/rdflib

Fix infinite recursion when __repr__ is called

 def __getattr__(self, name):                 raise AttributeError(e)      def __repr__(self):-        return f"{self.__module__}.{self.__class__.__name__}({self!r})"+        return f"{self.__module__}.{self.__class__.__name__}({str(self)!r})"

super().__repr__() works but results in the rather unsightly:

rdflib.namespace.ClosedNamespace(Namespace('http://example.com/name/space/'))

And super(str, self).__repr__() results in:

rdflib.namespace.ClosedNamespace(<super: <class 'str'>, NULL>)
aucampia

comment created time in 24 days

PullRequestReviewEvent

push eventiafork/rdflib

Iwan Aucamp

commit sha c11de7d563b02340e26542d24087bd0d15119046

Fix infinite recursion when __repr__ is called Also add some more tests.

view details

push time in 24 days

Pull request review commentRDFLib/rdflib

ENH: Make ClosedNamespace extend Namespace

 def __new__(cls, value):         return rt      def __mod__(self, *args, **kwargs):-        return URIRef(str(self).__mod__(*args, **kwargs))+        return URIRef(super().__mod__(*args, **kwargs))      def format(self, *args, **kwargs):-        return URIRef(str.format(self, *args, **kwargs))+        return URIRef(super().format(*args, **kwargs))      def __repr__(self):-        return "URIPattern(%r)" % str(self)+        return f"URIPattern({self!r})"

yes, it also causes infinite recursion.

kernc

comment created time in 24 days

PullRequestReviewEvent