- 
                Notifications
    
You must be signed in to change notification settings  - Fork 23
 
WIP: Add Atomic Graph #262
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
base: master
Are you sure you want to change the base?
Conversation
70f8a02    to
    95a068c      
    Compare
  
    5c1ca51    to
    de8b125      
    Compare
  
    de8b125    to
    6a7a278      
    Compare
  
    12fc1c8    to
    e5c5ff2      
    Compare
  
    …the same BlankNode
e5c5ff2    to
    6bc4b6e      
    Compare
  
    | 
           Just as a link: RDFLib/rdflib#1294  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot say anything about the big picture stuff, I am not familiar enough with the code base.
And I cannot comment multiple lines at once, is there a trick to it?
| try: | ||
| (f, context, nameMap) = result | ||
| except ValueError: | ||
| print(result) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the error actually handled?
| self._merge_test(join(testPath, d), "context") | ||
| 
               | 
          ||
| def _merge_test(self, dirPath, method): | ||
| # Prepate a git Repository | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
| self._blobs.set(blob, (file_reference, context, nameMap)) | ||
| blobs_new.add(blob) | ||
| except KeyError: | ||
| pass | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error actually handled?
| 
               | 
          ||
| if blob not in self._blobs: | ||
| (name, oid) = blob | ||
| content = commit.node(path=name).content | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if blob in self._blobs:
  return self._blobs.get(blob)
else
  ...
  return quitWorkingData| A BNode('a') found in parsedQuery would be replaced by the blanknode _:a found in the graph.nt. | ||
| That way, updates can pass Blanknodes as instances and do not have to work on string representations. | ||
| """ | ||
| def replaceBlankNode(parsedQuery, nameMap): | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very very big: three for loops and four ifs, try to split in multiple functions and maybe use list comprehension for more conciseness.
| 
               | 
          ||
| if len(nameMap) == 0: | ||
| return | ||
| for change in changes: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also too deep, difficult to understand.
| len((c for c in self.graphs() if c not in self.store.contexts())) | ||
| ) | ||
| 
               | 
          ||
| #def update(self, update_object): | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code
No description provided.