Skip to content
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

references of classOf point to wrong location #22

Open
kiritsuku opened this issue Aug 20, 2016 · 0 comments
Open

references of classOf point to wrong location #22

kiritsuku opened this issue Aug 20, 2016 · 0 comments
Labels

Comments

@kiritsuku
Copy link
Owner

The following test from ScalaSourceIndexerTest reveals the behavior:

  @Test
  def classOf_ref() = {
    indexData(Artifact(Project("p"), "o", "n", "v1"),
      "x.scala"  """
        class X {
          def f = classOf[X]
        }
      """)
    sparqlRequest("""
      prefix ref:<http://amora.center/kb/amora/Schema/0.1/Ref/0.1/>
      select * where {
        [ref:name "classOf"] ref:refToDecl ?classOfDecl .
      }
    """) === ???
  }

I haven't look into what to put at the ??? but it is definitely not what the query gives as answer right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant