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

fields defined twice when using maven plugin #14

Open
gpetz opened this issue Jun 18, 2020 · 3 comments
Open

fields defined twice when using maven plugin #14

gpetz opened this issue Jun 18, 2020 · 3 comments

Comments

@gpetz
Copy link

gpetz commented Jun 18, 2020

When using the maven plugin I get a
Could not generate schema BibframeVocab: field BibframeVocab.ACQUISITION_SOURCE_STRING is defined twice

<schema> <className>BibframeVocab</className> <url>http://id.loc.gov/ontologies/bibframe.rdf</url> </schema>

no exception is thrown when using the command line:
./rdf4j-schema-generator -f Application/rdf+xml bibframe.rdf -name BibframeVocab > BibframVocab.java

adding <mimeType>Application/rdf+xml</mimeType> yields to Date value may not be null

I have no idea what could be wrong.

Thanx

@naturzukunft
Copy link

naturzukunft commented Jan 15, 2021

same problem !
https://gitlab.com/naturzukunft.de/public/rdf/rdf4j-schema-instances/-/jobs/965766869

The same file works if i use cmd line. but there i use 0.4.3-SNAPSHOT a few days old, maybe 1 or 2 weeks.

@naturzukunft
Copy link

ok, i copied the file to the project and it seems to work: https://gitlab.com/naturzukunft.de/public/rdf/rdf4j-schema-instances/-/jobs/965855482
So maybe a streaming problem?

@naturzukunft
Copy link

ah, now i found a problem. i copied the stuff from here to another project and it was again not working! Then i saw, that here the prefix was wrong. i changed it to the correct one and again the problem!

changes that leads to the problem:
https://gitlab.com/naturzukunft.de/public/rdf/rdf4j-schema-instances/-/commit/f583a719aa190c7c943670877028f3aa7508cfd5

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