Giter VIP home page Giter VIP logo

fnotation's People

Contributors

awto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

koo5

fnotation's Issues

bugs:)

This is the best i found, but some translations are incorrect.
for example,

process_request_depreciation_new :-
	request_data(D),
	doc_value(D, depr_ui:depreciation_queries, _),

	(	maplist(process_depreciation_asset, $> doc_list_items($> doc_value(D, depr_ui:depreciation_assets)))
	->	true
	;	throw_string('depreciation: assets processing failed')),

	% events sheet is optional
	(	doc_value(D, depr_ui:depreciation_events, Events)
	->	(	maplist(process_depreciation_event, $> doc_list_items(Events))
		->	true
		;	throw_string('depreciation: events processing failed'))
	;	true
	),

	(	maplist(process_depreciation_query, $> doc_list_items($> doc_value(D, depr_ui:depreciation_queries)))
	->	true
	;	throw_string('depreciation: queries processing failed')).

is translated into:

user:process_request_depreciation_new :-
    request_data(A),
    doc_value(A,
              'https://rdf.lodgeit.net.au/v1/calcs/depr/ui#depreciation_queries',
              _),
    doc_value(A,
              'https://rdf.lodgeit.net.au/v1/calcs/depr/ui#depreciation_assets',
              B),
    doc_list_items(B, C),
    (   '__aux_maplist/2_process_depreciation_asset+0'(C)
    ->  true
    ;   throw_string('depreciation: assets processing failed')
    ),
    doc_list_items(D, E),
    (   doc_value(A,
                  'https://rdf.lodgeit.net.au/v1/calcs/depr/ui#depreciation_events',
                  D)
    ->  (   '__aux_maplist/2_process_depreciation_event+0'(E)
        ->  true
        ;   throw_string('depreciation: events processing failed')
        )
    ;   true
    ),
    doc_value(A,
              'https://rdf.lodgeit.net.au/v1/calcs/depr/ui#depreciation_queries',
              F),
    doc_list_items(F, G),
    (   '__aux_maplist/2_process_depreciation_query+0'(G)
    ->  true
    ;   throw_string('depreciation: queries processing failed')
    ).

note how the second and third calls to doc_value are put to the beginning. In the first case, it works well, because the doc_value(A, 'https://rdf.lodgeit.net.au/v1/calcs/depr/ui#depreciation_assets', B), does not depend on the subsequent doc_list_items(B, C),.

But in the second case, the doc_list_items(D, E), depends on the ( doc_value(A, 'https://rdf.lodgeit.net.au/v1/calcs/depr/ui#depreciation_events', D), which is called after it.

Other problems show around swipl dicts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.