- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
First implementation of a jupyter nb based tutorial #89
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
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            52 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      6b021be
              
                README update
              
              
                LukasGold c7d7c2a
              
                import_with_fallback implented and some reformatting
              
              
                LukasGold 81b3d66
              
                Doc string reformatting
              
              
                LukasGold d7824fc
              
                Reformatting
              
              
                LukasGold 2cbac21
              
                Bug fixes and doc improvements to express.py
              
              
                LukasGold df5cecd
              
                Fix import_with_fallback()
              
              
                LukasGold 22bbbaf
              
                Improvements to usability and readability
              
              
                LukasGold 01f0b1d
              
                Fix cases where the default_factory would not be present in the inher…
              
              
                LukasGold c104e39
              
                Fix: import_with_fallback() & Context Manager for osw_download_file()
              
              
                LukasGold 91bd5a2
              
                Moving some functionality from functions in osw.utils.wiki to methods…
              
              
                LukasGold 8539b95
              
                Making SearchParam available at WtSite.SearchParam
              
              
                LukasGold b7222f3
              
                Making openpyxl a requirement for dataimport
              
              
                LukasGold 5b5060c
              
                Improvements to import_utility.py - potentially breaking some functio…
              
              
                LukasGold 13acb67
              
                Renaming of casted -> transformed
              
              
                LukasGold 76bec5e
              
                Fixing failing tests due to missing methods (on classes)
              
              
                LukasGold f63df22
              
                Moving NoneType to a separate module
              
              
                LukasGold df680e0
              
                Validate attributes of OswBaseModel on assignment
              
              
                LukasGold 57957a1
              
                Fixing validation errors, causing tests to fail
              
              
                LukasGold 2967d43
              
                A collection of the param objects defined in the package
              
              
                LukasGold 632a0a1
              
                Introducing change id and StoreEntityResult
              
              
                LukasGold a42fddd
              
                Resolving circular import due to identical naming of osw.types
              
              
                LukasGold ee3def9
              
                Minor improvements to express functions
              
              
                LukasGold b279ebf
              
                Small fix to osw.core.OSW.StoreEntityParam
              
              
                LukasGold beffddf
              
                Still using pydantic.v1
              
              
                LukasGold 3f1d047
              
                Fixes to QueryInstancesParam & some readability improvements
              
              
                LukasGold d908a41
              
                Fixing validation error (introduced earlier)
              
              
                LukasGold 81c51d2
              
                Accompanying changes in the Category:Entity schema
              
              
                LukasGold 8d61b9c
              
                Deleting empty strings from jsondata to avoid validation errors
              
              
                LukasGold 2af7054
              
                Added method to delete a list of pages
              
              
                LukasGold 1b2bf1f
              
                Fixing params.py: Enums can't be inherited, added new param object
              
              
                LukasGold e22b0e4
              
                Applying template for Entity.name & Introducing Meta.uuid
              
              
                LukasGold 665a189
              
                Merge pull request #93 from OpenSemanticLab/feat-add-rdf-generation
              
              
                LukasGold c434777
              
                Fixing: length of dictionary changed during iteration
              
              
                LukasGold f8959d2
              
                apply_overwrite_policy() should apply the removal of empty strings
              
              
                LukasGold 0d9b87b
              
                Fix: Validation error for Entity.label
              
              
                LukasGold d316236
              
                First tutorial draft
              
              
                LukasGold db0d59e
              
                Continued content creation
              
              
                LukasGold 5846338
              
                Content added and reworked
              
              
                LukasGold 6606316
              
                Renaming of casted -> transformed
              
              
                LukasGold 557866f
              
                README.md update to account for tutorial
              
              
                LukasGold 0ae37ca
              
                Rework tutorial notebook to incorporate tests and feedback, as well a…
              
              
                LukasGold 403adbc
              
                Draft of start_tutorial.ipynb - a notebook to start from zero
              
              
                LukasGold e093f41
              
                More content: semantic search
              
              
                LukasGold ac7f8f3
              
                Added optional section to install & run tutorial in online notebook s…
              
              
                LukasGold 0bb9ec9
              
                Moving Entity.__init__ to static.py to avoid overwrite by fetch_schema
              
              
                LukasGold 95fe87e
              
                applying remove_empty instead of remove_empty_string
              
              
                LukasGold aa7a238
              
                Renaming custom FilePath to PossibleFilePath
              
              
                LukasGold ed7f4de
              
                Additional info on usage in Google Colab
              
              
                LukasGold 2edc49b
              
                Fixing jsonschema in example
              
              
                LukasGold 02e6273
              
                Deactivating test_statement_creation() for now
              
              
                LukasGold 80e7004
              
                Some usability features
              
              
                LukasGold 48f1c81
              
                Improved readability
              
              
                LukasGold File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              Large diffs are not rendered by default.
      
      Oops, something went wrong.
      
    
  
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| from pathlib import Path | ||
|  | ||
| import osw.params as prm | ||
| from osw.express import OswExpress | ||
|  | ||
| osw_obj = OswExpress( | ||
| domain="demo.open-semantic-lab.org", cred_filepath=Path("accounts.pwd.yaml") | ||
| ) | ||
| orgs = osw_obj.site.semantic_search( | ||
| prm.SearchParam( | ||
| query="[[HasType::Category:OSW1969007d5acf40539642877659a02c23]]", debug=False | ||
| ) | ||
| ) | ||
| persons = osw_obj.site.semantic_search( | ||
| prm.SearchParam( | ||
| query="[[HasType::Category:OSW44deaa5b806d41a2a88594f562b110e9]]", debug=False | ||
| ) | ||
| ) | ||
| osw_obj.site.delete_page(orgs + persons) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.