I studied evoc schema and am working on registering neologism published vocabularies properly with evoc.

Although Class and Property bundles are ready, for the moment I am assuming the vocabulary does not have any class or property and just saving the vocabulary correctly in evoc schema. There will be a seperate issue later on for registering class and property of a vocabulary.

I also had to create a few extra tables for neologism since evoc does not provide storage for all the fields in our entity, like functional property, Detailed descriptions etc.

I will have a patch up in the next few hours for all of the above.

Comments

mayankkandpal’s picture

Status: Active » Needs review
StatusFileSize
new42.55 KB

Patch for registering vocabularies with evoc. No known issues.
user_reference field is now working.
Schema required to store extra information also added.

Next task : Creating a hosting page for the vocabulary on the URI Porvided by the user, with links to add property and class.

mayankkandpal’s picture

I accidentally forgot to remove a dd() call in the previous patch and i think it would show up as an error if devel module is not enabled.
It is on line 157 of neologism.module

dd($form_state['values']['vocabulary_authors']);

Will remove this in the next patch.

mayankkandpal’s picture

StatusFileSize
new45.47 KB

Patch for creating URL Aliases, and some other minor changes like hiding Add property and Add Class from Add Content menu, displaying the namespace URI as a link, disabling publish on main page, etc. Removed dd() call.

sumitk’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
cygri’s picture

Mayank, it seems like you based some of this patch off the SVN trunk in the Google Code repo. The code in /trunk is outdated; the latest code is in the /branches/drupal-6 branch. Please base all of your work on that branch, otherwise you'll miss all the improvements we made to the D6 version in the last couple of months.

For example, these should not be constants, just use the string directly inline:

define("NEOLOGISM", "neologism");
define("HTML", "html");
define("RDF", "rdf");
define("N3", "n3");
define("XML", "xml");
define("NEOLOGISM_CT_VOCABULARY", "vocabulary");
define("NEOLOGISM_CT_CLASS", "class");
define("NEOLOGISM_CT_PROPERTY", "property");

(We removed most of these constants, but not yet all, on the drupal-6 branch.)

mayankkandpal’s picture

Status: Needs review » Fixed

fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.