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

(facette 3 UI) feature request: prefix resolution for p o list #5

Closed
seebi opened this issue Sep 11, 2019 · 12 comments
Closed

(facette 3 UI) feature request: prefix resolution for p o list #5

seebi opened this issue Sep 11, 2019 · 12 comments

Comments

@seebi
Copy link

seebi commented Sep 11, 2019

instead or URIs I would like to see prefixed qnames. This will allow for more space for literals :)

btw: great project :-)

@Aklakan
Copy link
Member

Aklakan commented Oct 2, 2019

Semi-done; short labels are now used everywhere - possibly based on resource's local names.
However, using a source for prefixes, such as http://prefix.cc would be a worthy addition.

@Aklakan
Copy link
Member

Aklakan commented Dec 19, 2019

Pressing the 's' key now context-sensitively shows the sparql query powering the data of the active component (facet/facet value/matches list) - these queries are normalized to by default use prefix declarations from a prefix.cc snapshot on the classpath.

@seebi
Copy link
Author

seebi commented Dec 20, 2019

great - Where can I download the latest build?

@Aklakan
Copy link
Member

Aklakan commented Dec 22, 2019

The latest snapshot is now available as a release bundle: https://github.com/hobbit-project/facete3/releases :)

@Aklakan
Copy link
Member

Aklakan commented Dec 22, 2019

So I think in order to close this issue, I should add toggles to switch the display of IRIs using (1) labels - this is what is done right now (2) compact URIs - in progress. A probably not very useful option (3) would be full IRI display - but maybe this is not useful as spacebar always shows the full IRI of the focused item.

@seebi
Copy link
Author

seebi commented Dec 27, 2019

The latest snapshot is now available as a release bundle: https://github.com/hobbit-project/facete3/releases :)

Just tested and got an error like this:

facete3
Exception in thread "main" java.lang.NullPointerException
	at org.aksw.facete3.cli.main.MainCliFacete3.main(MainCliFacete3.java:1017)

is there a new trick?

@Aklakan
Copy link
Member

Aklakan commented Jan 2, 2020

Oops - never tested it without arguments because there is not much use for that

Invocation with -h and --help should display some options - and more documentation is here: https://github.com/hobbit-project/facete3/tree/develop/facete3-core-parent/facete3-cli

@seebi
Copy link
Author

seebi commented Jan 4, 2020

This is partially incorrect since -h reveals this error:

∴ facete3 -h
Exception in thread "main" org.apache.jena.riot.RiotNotFoundException: Not found: -h
	at org.apache.jena.riot.RDFParser.openTypedInputStream(RDFParser.java:394)
	at org.apache.jena.riot.RDFParser.parseURI(RDFParser.java:301)
	at org.apache.jena.riot.RDFParser.parse(RDFParser.java:295)
	at org.apache.jena.riot.RDFParserBuilder.parse(RDFParserBuilder.java:506)
	at org.apache.jena.riot.RDFDataMgr.parseFromURI(RDFDataMgr.java:890)
	at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:221)
	at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:102)
	at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:93)
	at org.apache.jena.riot.RDFDataMgr.loadModel(RDFDataMgr.java:335)
	at org.aksw.facete3.cli.main.MainCliFacete3.main(MainCliFacete3.java:1037)

@seebi
Copy link
Author

seebi commented Jan 4, 2020

So I think in order to close this issue, I should add toggles to switch the display of IRIs using (1) labels - this is what is done right now (2) compact URIs - in progress. A probably not very useful option (3) would be full IRI display - but maybe this is not useful as spacebar always shows the full IRI of the focused item.

for me, the current local name presentation is fine (yes, prefix usage is great but not a MUST).

I found an issue with the current local name calculation:

The resource https://timetracker.eccenca.com/records/1525383613220
is currently presented as "records"
but should be presented as "1525383613220"

@Aklakan
Copy link
Member

Aklakan commented Jan 8, 2020

Right, so I should use a different namespace/localname split method.
At present, the code uses Util.splitNamespaceXML. However, as numbers are not valid starts of an XML namespace, in the case of '/123abc' the split only happens after '/123' - and in this case, if there are only numbers, apparently it happens on the preceding slash.

@Aklakan
Copy link
Member

Aklakan commented Mar 18, 2020

The latest branch now features hitting the 'l' key to toggle between full RDF terms and labels; which is very useful when labels are derived in suboptimal ways.

Aklakan added a commit that referenced this issue Oct 12, 2020
@Aklakan
Copy link
Member

Aklakan commented Oct 12, 2020

Prefix display toggle is now implemented using the 'p' key;
the CLI supports specification of custom prefixes via the -p rdfResource option.

Improvement of the CLI is subject of #31

@Aklakan Aklakan closed this as completed Oct 12, 2020
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

2 participants