Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Demonstrator - Reasoning WebAPI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • cogsys
  • Dare2Del
  • Demonstrator - Reasoning WebAPI
  • Issues
  • #19

Closed
Open
Created Nov 16, 2020 by Syed Mamoon Ahmed@syed-mamoon.ahmed

irrelevant/file result not satisfactory

I did the following two requests to /bg endpoint from example:

[
  {
        "type" : "file",
        "abs_path": "/A/B/Filename.exe",
        "file_size": 1024,
        "creation_time": "1604235569",
        "modification_time": "1604235569",
        "access_time": "1604235569",
        "change_time": "1604235569",
        "media_type": "img",
        "filename_extension": "png"
  },
    {
        "type" : "directory",
        "abs_path": "/A/B/",
        "creation_time": "1604235509",
  }
]

and

[
  {
        "type" : "file",
        "abs_path": "/A/B/Filename-2.exe",
        "file_size": 1024,
        "creation_time": "1604235589",
        "modification_time": "1604235589",
        "access_time": "1604235589",
        "change_time": "1604235589",
        "media_type": "img",
        "filename_extension": "png"
  }
]

then following request to /irrelevant/file:

  {
        "abs_path": "/A/B/Filename-2.exe",
  }

I get the following response:

{"result": false}

Which according to the the irrelevance theory: irrelevant(F) :- same_directory(F,F2), newer(F2,F).

should be true.

I have also tried changing the time to earlier (i.e. query file is older) i still get the "false" response

Edited Nov 16, 2020 by Syed Mamoon Ahmed
Assignee
Assign to
Time tracking