How to specify 'named graph' while loading data into graphdb with preload or loadrdf tools? - graphdb

With GraphDB workbench, it can specify 'named graph' to load RDF. But how to specify a 'named graph' with the command line tools, preload, or loadrdf? Thanks!

Unfortunately there's no way to do this. I've posted enhancement task GDB-5024.

Related

Setting default config for Visual Graph in GraphDB

Is it possible to set a custom advanced graph configuration as a default config to use upon clicking 'Visual Graph' button (e.g. from the 'Graph overview' sidebar) in GraphDB Free 8.4.1?
I have declared advanced configurations that are suitable for exploring my data, but they are only available through 'Visual Graph' menu. I would like to use them (at least one) also when switching to graph visualisation from the view of triples.
I haven't found such an option so far. A desperate move could be to rewrite the URL and manually add a fixed '?config=my_config' parameter, but I hope there is a better way do solve it.
There is no option to configure the default queries through GDB Workbench, but what you can do is change the queries in the files in your GDB distribution directly. They are located in graphdb/graphdb-/lib/workbench/WEB-INF/lib/graphdb-framework-graph-explore-.jar/graph-explore-queries/.. resourceLinks.sparql is the query for links expansion.

DITA OT: Missing conditional text from PDF output

I'm migrating a custom PDF plugin from DITA OT 2.4.4 to 2.5.4. It worked fine in DITA 2.4.4, but in 2.5.4, some elements are missing from the output. I've been able to work around this by adding templates for the missing elements to the custom plugin. The one I haven't been able to fix is for conditions to the body text (such as using the product attribute like ). Conditions are correctly included and excluded in the title, but not in the body of the topic.
I've looked in the provided org.dita.pdf2 plugins, but I can't find where conditions are filtered. Any suggestions on how to fix this? Thanks.
The filtering of DITA elements based on filters specified in the DITAVAL files is not done in the XSLT code, it's done in Java pre-processing steps.
So if your PDF plugin defines a separate transformation type and has ANT build files, maybe you could try to update those, if you copied ANT targets from the base PDF plugin, try to see how they changed. But it depends really on your particular PDF plugin, most PDF plugins which contribute a transformation type only use it to specify a PDF customization folder in the custom ANT build file.
I'm looking at my plugin and build files. I'm using the build_preprocess.xml from org.dita.base. The plugin doesn't have its own build file, but adds some conditions in the integrator.xml file, such as:
<!-- [Kofax] 2016-Apr-14 MAS: Passes through the command-line parameter for selecting the branding and sets
corporate as the default. -->
<condition property="title.branding" value="${title.branding}" else="corporate">
<isset property="title.branding"/>
</condition>
</target>
The plugin also has a root-processing.xsl file that has overrides to update the PDF's metadata.
Is there somewhere else I should look in my plugin?
Thanks,
Matthew

Set Version information for an existing .dll?

Need To Set Version Information on the existing .dll
I need to add these to dll
1.File Version
2.Product Version
Tried this free version.
does not work
any Idea ?
There is a tool named verpatch that does exactly that.
After you download it you can run it from command line as below:
verpatch your.dll /pv "product.version" /va "file.version"
There are many other flags that can be used to add extra information.
Try:
verpatch /?
There is Resource Tuner Console from Heaventools Software.
Resource Tuner Console is a command-line tool that enables developers to automate editing of different resource types in large numbers of Windows 32- and 64-bit executable files.
See specifically the Changing Version Variables And Updating The Version Information page for greater details.
I've created a tool for this purpose because didn't find anything that is enough easy to use and easy to automate. Developers find it useful.
I'm sorry if that might seem as a self-ad but I know how annoying is to sync versions...

Want to add XSD documentation to Javadoc generated pojo JIBX

Any ideas on how to include the xsd:annotation and xsd:documentation content defined in the schema as javadoc in the generated pojo using jibx???
For now I only get the schema fragment on top of the class but cant see the annotation documentation for the schema.
thanks for you time.
You seem to be experiencing an unexpected behavior, unless the lack of details in your question threw this answer off... If you're still in a bind after attempting troubleshooting as described below, the best would be for you to update your request with more information, such as an XSD fragment showing the setup, the versions you're using (Java, JiBX) and the command line you use for your codegen utility.
Start by taking a look at customizations documentation; make sure that the import-docs option, which is responsible to "Convert xs:documentation annotations in the schema definition to Javadocs in the generated [...]", is not set to false. The default value is true, so it should work...
Check that from a command line perspective, you're not overriding it. Alternatively, you could ensure is set explicitly (see this).
JiBX does automatically includes xsd:documentation content in the generated source code which will end up in your javadocs.
For a nice example, take a look at the opentravel.org schema which is included in the JiBX schema library.
Here is the opentravel schema definition for a 'ping' message:
http://opentravel.org/2011B/OTA_PingRQ.xsd.
Now download and unzip the javadoc.jar for the generated code from maven central:
http://search.maven.org/#search%7Cga%7C1%7Cfc%3Aorg.jibx.schema.org.opentravel._2011B.ping.PingRQ
Notice how the xsd:documentation displays nicely in the javadoc.
Hope this example helps!
Don Corley
JiBX contributor

Java program for code-formatting

Is there a program (Java program) to format code according to Java code format conventions?
Does an Ant task exist?
There is an Ant external task for Jalopy.
http://ant.apache.org/external.html
http://jalopy.sourceforge.net/
http://ant.apache.org/faq.html#adding-external-tasks
Hope this helps
Eclipse will automatically do this for you if you tell it to. or at least it will do an awful lot of it. I doubt it would rename variables to meet the coding standard though.
Click on the properties for you project and look at the options under "Java Code Style"
You will have to open each file individually and save it though.
You can also install CheckStyle to enforce coding standards.