kiritsuku / amora

The semantic search engine where anyone can define anything anywhere
Apache License 2.0
30 stars 1 forks source link

references of classOf point to wrong location #22

Open kiritsuku opened 8 years ago

kiritsuku commented 8 years ago

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.