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

empty namespace prefix cannot be used #94

Open
mhgrove opened this issue Jan 30, 2015 · 1 comment
Open

empty namespace prefix cannot be used #94

mhgrove opened this issue Jan 30, 2015 · 1 comment
Milestone

Comments

@mhgrove
Copy link
Owner

mhgrove commented Jan 30, 2015

From the mailing list:

@namespaces({"","http://purl.org/net/grafli#"
,"owl","http://www.w3.org/2002/07/owl#"
,"rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"
,"xml","http://www.w3.org/XML/1998/namespace"
,"xsd","http://www.w3.org/2001/XMLSchema#"
,"foaf","http://xmlns.com/foaf/0.1/"
,"rdfs","http://www.w3.org/2000/01/rdf-schema#"
,"skos2","http://www.w3.org/2008/05/skos#"
})

When I run a query using the empty qname e.g.

aManager.createQuery("where {?result a :SequencingRun; :wasAssociatedWith [a foaf:Person; foaf:accountName 'JohnPe']}")

@mhgrove mhgrove modified the milestones: 0.8, 0.9 Jan 30, 2015
@mhgrove
Copy link
Owner Author

mhgrove commented Mar 23, 2015

Inspecting the contents of PrefixManager.GLOBAL immediately before constructing the query, the default namespace (empty prefix) is certainly present; I think the immediate cause of its absence in the constructed query is the block that explicitly excludes the empty prefix in
com.clarkparsia.empire.impl.sparql.SPARQLDialect.insertNamespaces():
if (aPrefix.trim().equals("")) {
continue;
}
But I don't know why that is there so I'm not going to mess with it :)

in com.clarkparsia.empire.impl.sparql.SPARQLDialect.insertNamespaces()

@mhgrove mhgrove modified the milestones: 0.9, 1.0 Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant