ldodds / dowl Goto Github PK
View Code? Open in Web Editor NEWGenerate docs for RDF/OWL Schema
Generate docs for RDF/OWL Schema
Just need to delete line 5 of bin/dowl:
The code dies with an error if there isn't a foaf:name property on every author.
/var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/util.rb:42:in <=>': undefined method
downcase' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/schema.rb:84:in list_classes' from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/schema.rb:84:in
sort'
from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/schema.rb:84:in list_classes' from (erb):38:in
run'
from /var/lib/gems/1.8/gems/dowl-0.2/bin/../lib/dowl/generator.rb:19:in run' from /var/lib/gems/1.8/gems/dowl-0.2/bin/dowl:17 from /usr/local/bin/dowl:19:in
load'
from /usr/local/bin/dowl:19
should also support equivalentClass/property too
Pasted from console.
I'm not a ruby developer ... Is this a pre-requisite ?
% sudo gem install dowl
[sudo] password for jmv:
Fetching: metaclass-0.0.1.gem (100%)
Fetching: mocha-0.13.3.gem (100%)
Fetching: ffi-1.4.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing dowl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from extconf.rb:4:in `
Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.4.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.4.0/ext/ffi_c/gem_make.out
Ialso tried the other way :
% sudo apt-get install rake
...
Paramétrage de rake (0.9.2.2-4) ...
% sudo rake install
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
(See full trace by running task with --trace)
Description: Can't apply context unless initialized with data
supporting contexts
Version: a6551ec11d7ecff760bc22584e8dac7fe2904c68
Steps that will reproduce the problem?
What is the expected result?
New HTML file.
What happens instead?
/Library/Ruby/Gems/2.0.0/gems/rdf-1.1.4.3/lib/rdf/model/graph.rb:126:in `initialize': Can't apply context unless initialized with `data` supporting contexts (ArgumentError)
from /Library/Ruby/Gems/2.0.0/gems/dowl-0.7/lib/dowl/schema.rb:22:in `new'
from /Library/Ruby/Gems/2.0.0/gems/dowl-0.7/lib/dowl/schema.rb:22:in `create_from_file'
from /Library/Ruby/Gems/2.0.0/gems/dowl-0.7/bin/dowl:10:in `<top (required)>'
from /usr/bin/dowl:23:in `load'
from /usr/bin/dowl:23:in `<main>'
Possible workaround:
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.